[Libguestfs] 【help】why not support showing filename containing chinese characters with the ls function?
Richard W.M. Jones
rjones at redhat.com
Tue May 22 12:51:16 UTC 2012
On Tue, May 22, 2012 at 08:35:19PM +0800, Wanlong Gao wrote:
> On 05/22/2012 08:07 PM, Richard W.M. Jones wrote:
>
> > BTW, although this is not a proper solution, using the 'utf8'
> > mount option should work, ie:
> >
> > ><fs> mount-options utf8 /dev/vda1 /
> >
> > or:
> >
> > guestfish --ro -a d.img -m /dev/vda1:/:utf8
> >
> > Rich.
> >
>
>
> It's may because our qemu locale is "C" but not "en_US.utf8".
>
> ><fs> debug sh "export LC_ALL=en_US.utf8"
> /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8): No such file or directory
> /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Unfortunately this won't set the daemon's environment.
For debugging purposes *only*(!), I added a 'debug setenv' command:
https://github.com/libguestfs/libguestfs/commit/87d604f88c44f891a338349e2b012b6deadf7896
Also, this doesn't seem to help ...
><fs> debug setenv 'LANG en_US.UTF8'
ok
><fs> debug env '' | grep LANG
LANG=en_US.UTF8
><fs> ll /
total 20
drwxr-xr-x 2 root root 16384 Jan 1 1970 .
drwxr-xr-x 23 1000 1000 4096 May 22 13:48 ..
-rwxr-xr-x 1 root root 0 May 22 13:03 ??
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
More information about the Libguestfs
mailing list