Non-ascii embedded filename

Alain Bench veronatif at
Sat Apr 15 14:14:06 CEST 2006


 On Saturday, April 15, 2006 at 2:33:21 -0400, feitao wrote:

> [embedded filenames] gpg has some problem with some Chinese
> characters. For example, it interprets '‚S' as '\x8S'

    Confirmed with GnuPG 1.4.3 on Linux. It seems that in characters
encoding, all bytes that are between 0x80 and 0x9F are munged. Exactly
all bytes between 0x80 and 0x8F are replaced by the 3 chars "\x8", and
all bytes between 0x90 and 0x9F are replaced by the 3 chars "\x9". This
on a correct locale setup, and on a filesystem accepting those bytes in
filenames. It seems the embedded filename is stored OK, and the munging
takes place at the --use-embedded-filename stage.

    Additionally filenames are stored and extracted as they are, in the
current charset. This gives another problem when the locale is not the
same during both operations.

Bye!	Alain.
Give your computer's unused idle processor cycles to a scientific goal:
The Folding at home project at <URL:>.

More information about the Gnupg-users mailing list