Goverp Advocate
Joined: 07 Mar 2007 Posts: 2177
|
Posted: Sat Sep 07, 2024 6:24 pm Post subject: KDE (KGpg) default encoding |
|
|
Weird one:
On my system:
Code: | eselect locale show
LANG variable in profile:
en_GB.utf8 |
I have a file of passwords, "Passwords.asc", Gpg encrypted and stored ASCII-armoured.
If I use KGpg to open the file, and decrypt it using my private key, it shows the password list, as I wish.
Then I encrypt it using my public key, no problem - I see the usual ASCII-armoured file.
So far so good.
Now I click on Save, or Save as, or any variation on that theme, with the same file name or a new one, makes no difference, I get an error message
Quote: | The document could not been saved, as the selected codec is not supported. |
Apart from the dodgy grammar (err, isn't that the sign of a dubious web site ), WTF?
Eventually I realized there's an "encoding" pull-down list on the Save As menu, which seems to default to "x-UTF_8J".
I tried "ASCII", and "ascii7" and they didn't work, but "UTF8" did.
So I presume somewhere there's a default being chosen, extremely badly. The KGpg source code seems to want to set the encoding when it opens the file, so you'd thing it would choose an available codec!
System Settings has no entries for "encoding" or "codec". More to the point, choosing ASCII-armoured surely implies the a null ASCII encoding...
This system is KDE6, as of two days ago, but the problem sometimes occurred with KDE5 - I think I'd found a work-around by using some not-quite-the-easiest choice of Save As/Open Recent/something-else-I-forget.
I haven't managed to Google anything constructive. _________________ Greybeard |
|