[Top][All Lists]

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

Re[2]: [h-e-w] Emacs 23 cann't open a file under a very long path.

From: hongyi . zhao
Subject: Re[2]: [h-e-w] Emacs 23 cann't open a file under a very long path.
Date: Sun, 5 Oct 2008 00:22:07 +0800

On Saturday, October 4, 2008 at 23:47, address@hidden wrote:
>> Date: Sat, 4 Oct 2008 21:43:15 +0800
>> From: address@hidden
>> I use the GNU Emacs (i386-mingw-nt5.1.2600) of 2008-07-26 on 
>> LENNART-69DE564.  I find that when I want to open a file under a very long 
>> path, say:
>> ---------------------
>> F:\zhaohs\Desktop\博士论文工作相关\博士论文写作相关\我的修改过程等细节\一些进一步的修改\解决多文献列表问题,已经接近实际所用(目前所用方案)\如何产生多个参考文献列表\基于multibib的实现\cjk_preamble_werner\werner最后提供的方法,必须使用utf8编码\cjkbib\cjk_preamble.tex
>> --------------------- 
>> The Emacs will give me errors like the snapshot I posted here in the 
>> attachment.
>> But, if I rename the above file into cjk.tex, in this way, the above path 
>> will look like the following:
>> -----------------------
>> F:\zhaohs\Desktop\博士论文工作相关\博士论文写作相关\我的修改过程等细节\一些进一步的修改\解决多文献列表问题,已经接近实际所用(目前所用方案)\如何产生多个参考文献列表\基于multibib的实现\cjk_preamble_werner\werner最后提供的方法,必须使用utf8编码\cjkbib\cjk.tex
>> -----------------------
>> Then the Emacs will open the above file correctly.  
>> Why does this happen?  Who can give me some hints?

> It's possible that the multibyte encoding of this long file name takes
> more than 260 characters, which is the longest file name that the
> Windows ANSI APIs can handle.  For longer file names, we need to use
> the Unicode (a.k.a "wide-character") APIs, but Emacs doesn't do that
> yet.

I agree with you.

Hongyi Zhao <address@hidden> 
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences 
GnuPG DSA: 0xD108493

reply via email to

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