]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: replace an obsolete collation example with a valid one
authorBenno Schulenberg <bensberg@telfort.nl>
Mon, 12 Oct 2020 15:11:47 +0000 (17:11 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 13 Oct 2020 12:58:16 +0000 (14:58 +0200)
In the Spanish language, the digraph "ll" has not been considered a
separate letter since 1994:
  https://www.rae.es/consultas/exclusion-de-ch-y-ll-del-abecedario

Since January 1998 (commit 49891c106244888123557fca7fddda4fa1f96b1d),
glibc's locale data no longer specifies "ch" and "ll" as separate
collation elements.  So, it's better to not use "ll" in an example.

Also, the Czech "ch" is a better example as it collates in a more
surprising place.

manual/string.texi

index 23f516439a2d7eef9d3feed503a2907df3f0f96b..ad11519377a8c17f05d81d26fc9b6c86a2c950ea 100644 (file)
@@ -1422,9 +1422,9 @@ This is an obsolete alias for @code{memcmp}, derived from BSD.
 In some locales, the conventions for lexicographic ordering differ from
 the strict numeric ordering of character codes.  For example, in Spanish
 most glyphs with diacritical marks such as accents are not considered
-distinct letters for the purposes of collation.  On the other hand, the
-two-character sequence @samp{ll} is treated as a single letter that is
-collated immediately after @samp{l}.
+distinct letters for the purposes of collation.  On the other hand, in
+Czech the two-character sequence @samp{ch} is treated as a single letter
+that is collated between @samp{h} and @samp{i}.
 
 You can use the functions @code{strcoll} and @code{strxfrm} (declared in
 the headers file @file{string.h}) and @code{wcscoll} and @code{wcsxfrm}