From: MJ Chan <mjchan.inbox@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, handa@m17n.org
Subject: Re: file-attribute on certain Chinese filenames failed
Date: Sat, 17 Feb 2007 10:09:16 -0500 [thread overview]
Message-ID: <17879.6812.227000.712283@MJ.T40.T40> (raw)
In-Reply-To: <u1wkpkm71.fsf@gnu.org>
Thanks for pointing out w32.c in which function stat is defined. I
thought Emacs used windows native stat.
Indeed, the problem is in stat, which calls strpbrk for checking
invalid filename, (*?|<>\"). The Chinese/Big5 character that I have
problem with contains '|'.
I also did some test with windows native stat call and it did not fail
with that Chinese filename.
>>>>> On Saturday, February 17 2007, Eli Zaretskii said:
>> Date: Tue, 13 Feb 2007 01:06:39 -0500
>> From: MJ Chan <mjchan.inbox@gmail.com>
>> Cc: emacs-devel@gnu.org
>>
>> The same code you used did not cause write-region to fail on my
>> XP. That is, the file "會" was written correctly. But again,
>> file-attributes returned nil.
> Could you perhaps step with a debugger into the function `stat' (in
> w32.c) and see where it fails in this case?
> I tried to reproduce this on Windows, but couldn't: file-attributes
> works for me with non-ASCII file names. However, I don't have access
> to a Chinese Windows system.
next prev parent reply other threads:[~2007-02-17 15:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <45c9d948.5c6acfa4.4c9b.ffffeb01@mx.google.com>
2007-02-13 5:36 ` file-attribute on certain Chinese filenames failed Kenichi Handa
2007-02-13 6:06 ` MJ Chan
2007-02-14 15:15 ` Jason Rumney
2007-02-17 12:22 ` Eli Zaretskii
2007-02-17 15:09 ` MJ Chan [this message]
2007-02-18 22:15 ` Eli Zaretskii
2007-02-19 4:03 ` MJ Chan
2007-02-23 18:41 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17879.6812.227000.712283@MJ.T40.T40 \
--to=mjchan.inbox@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.