Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14877 > unrolled thread
| Started by | Bize Ma <binaryzebra@gmail.com> |
|---|---|
| First post | 2018-11-28 06:45 -0400 |
| Last post | 2018-11-28 06:45 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Bash removes unrequested characters in bracket expressions (not a range). Bize Ma <binaryzebra@gmail.com> - 2018-11-28 06:45 -0400
| From | Bize Ma <binaryzebra@gmail.com> |
|---|---|
| Date | 2018-11-28 06:45 -0400 |
| Subject | Re: Bash removes unrequested characters in bracket expressions (not a range). |
| Message-ID | <mailman.5073.1543846788.1284.bug-bash@gnu.org> |
Chet Ramey (<chet.ramey@case.edu>) wrote: > On 11/24/18 2:32 PM, Chet Ramey wrote: > > >> But IMO locale collation should not be used for an explicit list. > > > > Collation order is used for each individual character in a bracket > > expression when compared against the string, as posix specifies. > Yes, values resulting from a glob expansion should be compared with strcoll. How many characters should there be in a range like [0-0] ? Or to be more precise: in a [0] bracket expression? one? If I were you, I would file a bug report with Debian against wcscoll. > And I would be told that wcscoll is doing what the collation file 14651 is telling it to do. And, that in any case, that file has been updated in glib2.8 anyway. > It returns 0 (equal) for L"٠" and L"0" without setting errno. That's > clearly a problem with wcscoll (if the character isn't valid in the current > locale) or the locale definition. > Both characters collate to the same position as I have already explained. I don't follow you about what you mean with: *(if the character isn't valid in the current locale).*
Back to top | Article view | gnu.bash.bug
csiph-web