@psanker @sascha_wolfer Maybe there are implementations that do this (Perl ensures consistent behavior for the special ranges A-Z, a-z, 0-9, and any subranges of these), but according to POSIX, in any locale other than POSIX, “a range expression has unspecified behavior.” Better use [[:upper:]] or something equivalent.