>>>>> On Wed, 11 Nov 2015, René Neumann wrote: >> Shouldn't these be safe to use if the string consists purely of >> ASCII characters? I mean, A-Z and a-z should be uppercase and >> lowercase, respectively, in any locale?
> Unfortunately, no (have been bitten by this issue already some years
> ago):
> $ echo $LC_ALL
> tr_TR
> $ f=i; echo ${f^^}
> İ
> $ f=I; echo ${f,}
> ı
This is wrong on so many levels. :( It starts with the fact that the
dot over the lowercase latin i historically never was a diacritical
mark [1].
Maybe we should advise users in our documentaion that they should
avoid such broken locales for ebuilds?
Ulrich
[1] https://commons.wikimedia.org/wiki/File:Evolution_of_minuscule.svg
pgpMdBTBHOBiM.pgp
Description: PGP signature
