about summary refs log tree commit diff
path: root/math/s_fdim_template.c
diff options
context:
space:
mode:
authorMike FABIAN <mfabian@redhat.com>2018-01-23 17:29:36 +0100
committerMike FABIAN <mfabian@redhat.com>2018-03-02 11:31:15 +0100
commitcc5351f2c0502826f8b4143f3646d44e334ff7b8 (patch)
tree58d94cf61beb4f4283a25643f2bd6c47d2ca5cc7 /math/s_fdim_template.c
parentffa8106c727607fb365f2b93649fe3ea182dffe4 (diff)
downloadglibc-cc5351f2c0502826f8b4143f3646d44e334ff7b8.tar.gz
glibc-cc5351f2c0502826f8b4143f3646d44e334ff7b8.tar.xz
glibc-cc5351f2c0502826f8b4143f3646d44e334ff7b8.zip
Fix test cases tst-fnmatch and tst-regexloc for the new iso14651_t1_common file.
See:

http://pubs.opengroup.org/onlinepubs/7908799/xbd/re.html

> A range expression represents the set of collating elements that fall
> between two elements in the current collation sequence,
> inclusively. It is expressed as the starting point and the ending
> point separated by a hyphen (-).
>
> Range expressions must not be used in portable applications because
> their behaviour is dependent on the collating sequence. Ranges will be
> treated according to the current collating sequence, and include such
> characters that fall within the range based on that collating
> sequence, regardless of character values. This, however, means that
> the interpretation will differ depending on collating sequence. If,
> for instance, one collating sequence defines ä as a variant of a,
> while another defines it as a letter following z, then the expression
> [ä-z] is valid in the first language and invalid in the second.

Therefore, using [a-z] does not make much sense except in the C/POSIX locale.
The new iso14651_t1_common lists upper case and  lower case Latin characters
in a different order than the old one which causes surprising results
for example in the de_DE locale: [a-z] now includes A because A comes
after a in iso14651_t1_common but does not include Z because that comes
after z in iso14651_t1_common.

	* posix/tst-fnmatch.input: Fix results for range expressions
        for non C locales.
	* posix/tst-regexloc.c: Do not use a range expression for
        de_DE.ISO-8859-1 locale.
Diffstat (limited to 'math/s_fdim_template.c')
0 files changed, 0 insertions, 0 deletions