From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D40FE1F4B4 for ; Mon, 12 Oct 2020 15:11:58 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C06DF386F407; Mon, 12 Oct 2020 15:11:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C06DF386F407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1602515517; bh=1Kz1BPhHWjTy8CgyvhaWdl6KPr29DWfp8Rr3eLjfAps=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ns8160gRuAW1A60Vq/V1+NRXm4GkYfX2MVSMEUb5KP3qhLw5eorahcTKq4psl/B4Z rOMwgd2C2UUFCHfoElIFVW6/ftrTNJTITPBw5nD3PwyqTYuYEb2RR88nNnhqZVRDo7 QAC+knu5mIzNDufCBBNcDf9YWMZzbuAg23qJ5tpM= Received: from cpsmtpb-ews10.kpnxchange.com (cpsmtpb-ews10.kpnxchange.com [213.75.39.15]) by sourceware.org (Postfix) with ESMTP id E75463857C40 for ; Mon, 12 Oct 2020 15:11:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E75463857C40 Received: from cpsps-ews19.kpnxchange.com ([10.94.84.185]) by cpsmtpb-ews10.kpnxchange.com with Microsoft SMTPSVC(8.5.9600.16384); Mon, 12 Oct 2020 17:11:53 +0200 X-Brand: /q/rzKX13g== X-KPN-SpamVerdict: e1=0;e2=0;e3=0;e4=(e1=10;e3=10;e2=11;e4=10);EVW:Whi te;BM:NotScanned;FinalVerdict:Clean X-CMAE-Analysis: v=2.4 cv=S61nfKgP c=1 sm=1 tr=0 ts=5f847239 cx=a_idp_e a=/dHbpd/3q0lrH6oA/zwSgQ==:117 a=X0PnwcQ2/mKcBfosUKIoXQ==:17 a=UhJ12kwm0HYA:10 a=afefHYAZSVUA:10 a=wO62HdNUAAAA:8 a=Wgd-BMyxzY8o_1DFAjIA:9 X-CM-AcctID: kpn@feedback.cloudmark.com Received: from smtp.kpnmail.nl ([195.121.84.45]) by cpsps-ews19.kpnxchange.com over TLS secured channel with Microsoft SMTPSVC(8.5.9600.16384); Mon, 12 Oct 2020 17:11:53 +0200 X-KPN-VerifiedSender: Yes X-CMASSUN: 33|8fdqM/LC4ZWsvre6IrixKhihdOhi+tVW8ubr2ijch+HdlUmKTosermTzVtgrsKI ynKnxuMs6iEC0Na9AyWKCxA== X-Originating-IP: 77.173.60.12 Received: from localhost (77-173-60-12.fixed.kpn.net [77.173.60.12]) by smtp.kpnmail.nl (Halon) with ESMTPSA id 429285e3-0c9d-11eb-9953-005056ab7447; Mon, 12 Oct 2020 17:11:53 +0200 (CEST) To: libc-alpha@sourceware.org Subject: [PATCH] manual: replace an obsolete collation example with a valid one Date: Mon, 12 Oct 2020 17:11:47 +0200 Message-Id: <20201012151147.4647-1-bensberg@telfort.nl> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 12 Oct 2020 15:11:53.0441 (UTC) FILETIME=[04804D10:01D6A0AA] X-RcptDomain: sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Benno Schulenberg via Libc-alpha Reply-To: Benno Schulenberg Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/string.texi b/manual/string.texi index 23f516439a..ad11519377 100644 --- a/manual/string.texi +++ b/manual/string.texi @@ -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} -- 2.25.4