emacs-devel
[Top][All Lists]
Advanced

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

Re: File name completion with non-ascii filenames


From: Eli Zaretskii
Subject: Re: File name completion with non-ascii filenames
Date: Wed, 19 Dec 2001 17:58:55 +0200

> From: Richard Stallman <address@hidden>
> Date: Tue, 18 Dec 2001 22:59:50 -0700 (MST)
> 
> + static int
> + scmp (s1, s2, len)
> +      register unsigned char *s1, *s2;
> +      int len;
> + {
> +   register int l = len;
> + 
> +   if (completion_ignore_case)
> +     {
> +       while (l && DOWNCASE (*s1++) == DOWNCASE (*s2++))
> +     l--;
> +     }

Is this the proper way of comparing unibyte characters
case-insensitively?  That is, are the tables used by DOWNCASE set up
for unibyte characters as well?

Come to think about this, what does completion_ignore_case have to do
with comparing file names?  I think it's not relevant, so I think we
should remove the case-insensitive branch.



reply via email to

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