* Bug: Autocompleting umlauts
@ 2021-12-23 13:46 Luis.Dilling
2021-12-23 18:06 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Luis.Dilling @ 2021-12-23 13:46 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 511 bytes --]
Suppose there's a subdirectory named |`MÜNCHEN`| in the current
directory, then tab-completion won't recognize this directory, when |`cd
münchen`|+ [tab] is given.
I noticed this behavior when attempting to |cd| the given directory
(with tab autocomletion), and while doing the same with `|rm -r`|.
I assume, *it's a zsh-wide issue due to broken case-insensitive matching
umlauts.*
I'd like to provide some patch, but I was unable to figure out, where
the bug is caused.
Thanks,
Luis
**
[-- Attachment #2: Type: text/html, Size: 897 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Autocompleting umlauts
2021-12-23 13:46 Bug: Autocompleting umlauts Luis.Dilling
@ 2021-12-23 18:06 ` Bart Schaefer
2021-12-23 20:29 ` Mikael Magnusson
0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2021-12-23 18:06 UTC (permalink / raw)
To: Luis.Dilling; +Cc: Zsh hackers list
On Thu, Dec 23, 2021 at 8:41 AM <Luis.Dilling@gmx.net> wrote:
>
> Suppose there's a subdirectory named `MÜNCHEN` in the current directory, then tab-completion won't recognize this directory, when `cd münchen` + [tab] is given.
Version of zsh?
Operating system?
Locale settings?
How are you enabling case-insensitive matching? That is, are you
using a matcher-list specification? With or without NO_CASE_GLOB?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Autocompleting umlauts
2021-12-23 18:06 ` Bart Schaefer
@ 2021-12-23 20:29 ` Mikael Magnusson
2021-12-23 21:06 ` Daniel Shahaf
0 siblings, 1 reply; 4+ messages in thread
From: Mikael Magnusson @ 2021-12-23 20:29 UTC (permalink / raw)
To: Bart Schaefer; +Cc: Luis.Dilling, Zsh hackers list
matchers only support single-byte characters, comp.h says:
/*
* For now this just handles single-byte characters.
* TODO: this will change.
*/
and the manpage agrees:
`m:{[:lower:]}={[:upper:]}'. Although the matching system
does not yet han‐
dle multibyte characters, this is likely to be a future
extension, at which
point this syntax will handle arbitrary alphabets; hence
this form, rather
than the use of explicit ranges, is the recommended form. In
other cases
On 12/23/21, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Thu, Dec 23, 2021 at 8:41 AM <Luis.Dilling@gmx.net> wrote:
>>
>> Suppose there's a subdirectory named `MÜNCHEN` in the current directory,
>> then tab-completion won't recognize this directory, when `cd münchen` +
>> [tab] is given.
>
> Version of zsh?
> Operating system?
> Locale settings?
>
> How are you enabling case-insensitive matching? That is, are you
> using a matcher-list specification? With or without NO_CASE_GLOB?
>
>
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Autocompleting umlauts
2021-12-23 20:29 ` Mikael Magnusson
@ 2021-12-23 21:06 ` Daniel Shahaf
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Shahaf @ 2021-12-23 21:06 UTC (permalink / raw)
To: Zsh hackers list; +Cc: Luis.Dilling
Mikael Magnusson wrote on Thu, 23 Dec 2021 20:29 +00:00:
> On 12/23/21, Bart Schaefer <schaefer@brasslantern.com> wrote:
>> On Thu, Dec 23, 2021 at 8:41 AM <Luis.Dilling@gmx.net> wrote:
>>>
>>> Suppose there's a subdirectory named `MÜNCHEN` in the current directory,
>>> then tab-completion won't recognize this directory, when `cd münchen` +
>>> [tab] is given.
>>
>> Version of zsh?
>> Operating system?
>> Locale settings?
>>
>> How are you enabling case-insensitive matching? That is, are you
>> using a matcher-list specification? With or without NO_CASE_GLOB?
>>
>
> matchers only support single-byte characters
The UTF-8 representations of «ü» and «Ü» differ by exactly one byte,
though. I wonder what would happen if that byte (0x9C v. 0xBC) were
declared equivalent…
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-23 21:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-23 13:46 Bug: Autocompleting umlauts Luis.Dilling
2021-12-23 18:06 ` Bart Schaefer
2021-12-23 20:29 ` Mikael Magnusson
2021-12-23 21:06 ` Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).