help-emacs-windows
[Top][All Lists]
Advanced

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

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


From: Eli Zaretskii
Subject: Re: [h-e-w] Emacs 23 cann't open a file under a very long path.
Date: Sat, 04 Oct 2008 18:47:09 +0300

> Date: Sat, 4 Oct 2008 21:43:15 +0800
> From: address@hidden
> 
> I use the GNU Emacs 23.0.60.1 (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.





reply via email to

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