[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile can't find a chinese named file

From: tomas
Subject: Re: guile can't find a chinese named file
Date: Tue, 31 Jan 2017 13:20:40 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hash: SHA1

On Mon, Jan 30, 2017 at 10:46:26PM +0200, Marko Rauhamaa wrote:


> You are jumping the gun. Linux won't be there for a long time if ever.
> Nothing prevents a pathname, or a command-line argument, or an
> environment variable, or the standard input from containing illegal
> UTF-8.

To put more emphasis on this point: as things stand, you won't be able
to avoid having paths with illegal UTF-8.

Consider mounting a file system with UTF-8 file names over one
containing Latin-1 file names. Then even if both are consistent
in themselves (a far stretch, because there might be multiple apps
under multiple locales creating and naming files), the combined
path might be bad UTF-8

As long as the OS keeps out of this business I guess the application
will need a "layer" from which to look at paths (and env variables
and argv and all that) as mere byte sequences, before any interpretation
takes place.

> (Also note that even Windows allows pathnames with illegal Unicode in
> them if I'm not mistaken.)

This is so Microsoft: the file name character set in the file system
is Unicode... except when it isn't :-)

- -- t
Version: GnuPG v1.4.12 (GNU/Linux)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]