In article <[EMAIL PROTECTED]>, Eli Zaretskii <[EMAIL PROTECTED]> writes:

>> Okay I see the problem in files.el.  The function file-truename 
>> overcomes case-sensitivity on Windows systems by using the function
>> w32-long-file-name, but only if it detects no wildcards.
>> 
>> So how can this be fixed? :)

> It looks like a non-trivial change to dired.c is required.  The
> function directory-files used to glob wildcards converts the wildcards
> to a regexp and then matches that regexp against each file in the
> directory.  To force it to work case-insensitively, we need to pass a
> char-table for case-folding to compile_pattern (called by
> directory_files_internal), but what char-table to use here?  The
> pattern and the file names could use non-ASCII characters.

> Handa-san, could you help with advice here?  Thanks.

I haven't read the previous mails in this thread, but, if we
need a compiled pattern for case-folding search/match, it
seems that we have to pass Vascii_canon_table (or
buffer_defaults.case_canon_table, I think they are the same)
to compile_pattern.

---
Kenichi Handa
[EMAIL PROTECTED]


Reply via email to