unconvertable chars display glitches

Alain Bench xwck at oreka.com
Fri Jan 14 10:19:46 CET 2005


Hello,

    Testing Debian Woody Glibc iconv 2.2.5 and GnuPG 1.4, /René Lecœur/
made a test key (comes here attached). His UID contains 2 well-formed
UTF-8 special chars: An 'é' (e acute) and a 'œ' (oe ligature). Perfect
display in a locale having both chars, like with CP-1252 charset:

| $ gpg -vvv --list-keys "René"
| gpg: using character set `CP1252'
| gpg: using PGP trust model
| pub    512D/882B59FD 2005-01-08
| uid                  René Lecœur <joe at foo.bar>

    But in a locale where only the e acute exists, like with charset
CP-857 (Turkish):

| $ gpg -vvv --list-keys "René"
| gpg: using character set `IBM857'
| gpg: using PGP trust model
| pub    512D/882B59FD 2005-01-08
| gpg: conversion from `utf-8' to `IBM857' failed: Invalid or incomplete multibyte or wide character
| uid                  RenÚ Lec\xc5\x93ur <joe at foo.bar>

 - The warning line about failed conversion may perhaps not be really
necessary in such simple unconvertability case: The \hex display of raw
UTF-8 may well be sufficient?

 - The 'Ú' (U acute) in place of 'é' in "René" is wrong. Fallback to
Latin-1 conversion of full string if one char only was unconvertable
seems not optimal here.


     Probably a display like that might be clearer:

| $ gpg -vvv --list-keys "René"
| gpg: using character set `IBM857'
| gpg: using PGP trust model
| pub    512D/882B59FD 2005-01-08
| uid                  René Lec\xc5\x93ur <joe at foo.bar>


Bye!	Alain.
-- 
When you post a new message, beginning a new topic, use the "mail" or
"post" or "new message" functions.
When you reply or followup, use the "reply" or "followup" functions.
Do not do the one for the other, this breaks or hijacks threads.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ReneLecoeur.key
Type: application/pgp-keys
Size: 589 bytes
Desc: not available
Url : /pipermail/attachments/20050114/f23b4530/ReneLecoeur.key


More information about the Gnupg-users mailing list