From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Gibberish file names on Windows Date: Thu, 02 Oct 2008 21:50:21 +0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1222973466 32438 80.91.229.12 (2 Oct 2008 18:51:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2008 18:51:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 02 20:52:03 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KlTHO-0002jF-EX for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2008 20:52:02 +0200 Original-Received: from localhost ([127.0.0.1]:60358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlTGL-0008AJ-9x for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2008 14:50:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlTG1-0008A7-Sw for help-gnu-emacs@gnu.org; Thu, 02 Oct 2008 14:50:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlTG1-00089v-4q for help-gnu-emacs@gnu.org; Thu, 02 Oct 2008 14:50:37 -0400 Original-Received: from [199.232.76.173] (port=39303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlTG0-00089s-Vr for help-gnu-emacs@gnu.org; Thu, 02 Oct 2008 14:50:37 -0400 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:23626) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KlTG0-0003Vc-GC for help-gnu-emacs@gnu.org; Thu, 02 Oct 2008 14:50:36 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.170.116]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K8400D3EKDV46C1@i_mtaout5.012.net.il> for help-gnu-emacs@gnu.org; Thu, 02 Oct 2008 21:51:32 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58308 Archived-At: > From: Leo > 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.