I try to compare two files with iso-8859-1 (german) encoding, all "umlauts"/.. are displayed as a black-diamond-question-mark-symbol. kompare --help lists an option: --e <encoding> Use this to specify the encoding when calling it from the command line. It will default to the local encoding if not specified. but this results in the error "Unknown option 'e'." So I cannot compare other files than utf-8. These are my locale settings: locale LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL= Reproducible: Always
Bug still exists in kompare 21.12.2. The option is not implemented as shown in source code: if (parser.isSet(QStringLiteral("e <encoding>"))) { // Encoding given... // FIXME: Need to implement this... } The work-around is to open kompare without arguments. The initial dialog lets you select the encoding. Are there chances, that patches will be accepted?
Of course. Patches are always welcome.