From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk, "Benjamin Hill (Mako)" <mako@debian.org>,
289442@bugs.debian.org
Subject: Re: Bug#289442: zsh: completions do not respect LC_COLLATE
Date: Sun, 9 Jan 2005 11:12:12 -0500 [thread overview]
Message-ID: <20050109161212.GA21009@scowler.net> (raw)
In-Reply-To: <20050109153543.GA7922@scowler.net>
> I think we could change the character comparison at the end of
> setbpcmp() to a strcoll(), or do setxfrm()'s at the beginning.
This does the trick. I'll refrain from committing in case there's
an unacceptable performance hit or side effect.
Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.45
diff -u -r1.45 zle_tricky.c
--- Src/Zle/zle_tricky.c 2 Jun 2004 22:15:02 -0000 1.45
+++ Src/Zle/zle_tricky.c 9 Jan 2005 16:09:21 -0000
@@ -1907,7 +1907,11 @@
}
}
}
+#ifndef HAVE_STRCOLL
return (int)(*a - *b);
+#else
+ return strcoll(a,b);
+#endif
}
/* This is used to print the strings (e.g. explanations). *
prev parent reply other threads:[~2005-01-09 16:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1CnUVX-0005Di-00@nozomi>
2005-01-09 15:35 ` Clint Adams
2005-01-09 16:12 ` Clint Adams [this message]
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=20050109161212.GA21009@scowler.net \
--to=clint@zsh.org \
--cc=289442@bugs.debian.org \
--cc=mako@debian.org \
--cc=zsh-workers@sunsite.dk \
/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 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).