* Gibberish file names on Windows
@ 2008-10-02 17:53 Leo
2008-10-02 18:50 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2008-10-02 17:53 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
Chinese file names are displayed as gibberish for example:
7cde~1
b8ce~1
d3cb~1
f091~1
bdea~1
They are shown correctly under w32 explorer. I am running Windows XP
with locale British English and eastern Asian language support. Any
ideas?
[GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-09-27 on LENNART-69DE564]
Thank you,
--
.: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :.
Use the better alternative -- http://www.openoffice.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gibberish file names on Windows
[not found] <mailman.57.1222970028.25473.help-gnu-emacs@gnu.org>
@ 2008-10-02 18:22 ` Pascal J. Bourguignon
0 siblings, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2008-10-02 18:22 UTC (permalink / raw)
To: help-gnu-emacs
Leo <sdl.web@gmail.com> writes:
> Hi all,
>
> Chinese file names are displayed as gibberish for example:
>
> 7cde~1
> b8ce~1
> d3cb~1
> f091~1
> bdea~1
>
> They are shown correctly under w32 explorer.
This is perfectly normal.
> I am running Windows XP
> with locale British English and eastern Asian language support. Any
> ideas?
Any idea for what?
--
__Pascal Bourguignon__ http://www.informatimago.com/
READ THIS BEFORE OPENING PACKAGE: According to certain suggested
versions of the Grand Unified Theory, the primary particles
constituting this product may decay to nothingness within the next
four hundred million years.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gibberish file names on Windows
2008-10-02 17:53 Leo
@ 2008-10-02 18:50 ` Eli Zaretskii
2008-10-03 5:27 ` Leo
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2008-10-02 18:50 UTC (permalink / raw)
To: help-gnu-emacs
> From: Leo <sdl.web@gmail.com>
> Date: Thu, 02 Oct 2008 18:53:23 +0100
>
> Chinese file names are displayed as gibberish for example:
>
> 7cde~1
> b8ce~1
> d3cb~1
> f091~1
> bdea~1
Say thanks that they are displayed at all ;-) In Emacs 22.1 and
before, you simply cannot see such files.
The Windows port of Emacs does not yet use the Unicode versions of the
filesystem APIs, it uses the so-called ``ANSI'' versions. ANSI
versions support only non-ASCII characters native to the current
system locale. So in any locale but the Chinese one, Emacs cannot see
files with Chinese characters, because the system call that lists
files in a directory simply returns any such characters as `?', which
is an invalid file-name character on Windows.
To avoid such a total lossage in these cases, Emacs 22.2 and later
uses the short 8+3 file name instead, which is what you see above.
Some day Emacs will begin using the Unicode APIs, at which point you
will see all the characters in any locale. But converting Emacs to
the Unicode APIs is a formidable job, so even Emacs 23.1 will probably
not be released with it.
> They are shown correctly under w32 explorer.
The Windows Explorer on Windows XP does support the full Unicode
APIs. But many other programs that come with Windows don't.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gibberish file names on Windows
2008-10-02 18:50 ` Eli Zaretskii
@ 2008-10-03 5:27 ` Leo
0 siblings, 0 replies; 4+ messages in thread
From: Leo @ 2008-10-03 5:27 UTC (permalink / raw)
To: help-gnu-emacs
On 2008-10-02 19:50 +0100, Eli Zaretskii wrote:
> Say thanks that they are displayed at all ;-) In Emacs 22.1 and
> before, you simply cannot see such files.
>
[...]
Thank you for the detailed answer!
--
.: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :.
Use the better alternative -- http://www.openoffice.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-03 5:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.57.1222970028.25473.help-gnu-emacs@gnu.org>
2008-10-02 18:22 ` Gibberish file names on Windows Pascal J. Bourguignon
2008-10-02 17:53 Leo
2008-10-02 18:50 ` Eli Zaretskii
2008-10-03 5:27 ` Leo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).