From patchwork Wed Nov 16 19:47:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zack Weinberg X-Patchwork-Id: 17530 Received: (qmail 2635 invoked by alias); 16 Nov 2016 19:47:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 2611 invoked by uid 89); 16 Nov 2016 19:47:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1425, __nonnull, strcoll_l, strxfrm_l X-HELO: mail-qk0-f194.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=0B5Z9A0plKn+oI+SmkM0BACSWf9Beu6RSaq5vN/+MXA=; b=d/Mb7byU4TumT0SWbJdLMzg+E2CC+SXxk/XYlB/FpDtHGBm3V4lBVstIdYCrIVdo8j yGByNSmc0BhjnvpbWgm+GF5R+6WwiW/jm9SKrv+eHpmCE3oZ92t4tjws0nY/AjI7JBGM 2QzIU1fBqP1+xaZjmn28m2ocH+dqT2MrulvKE2T7ihonQ5u5umv0C8bOge2yBduJFa+G /At3QSm80J+YdXJwoxym8xvsM4Y8VdwPt94trixCvGkkCmKrE0fihDbJYUXuTeaK2puP qmlAstBeKspbs5qMXSdrXAMKR5/iqNoQgEIvYULklK1RMdqHT3KxZWVhivOHyVNIeY73 BzRw== X-Gm-Message-State: AKaTC00twHV/edQ+vttHd3NZN5SYJfFWcPc1+KyIDQ6nXjFDCrekjdAbH4k7PTlZgMTZ2Q== X-Received: by 10.55.189.199 with SMTP id n190mr6120900qkf.139.1479325674194; Wed, 16 Nov 2016 11:47:54 -0800 (PST) To: GNU C Library From: Zack Weinberg Subject: [patch committed] strcoll_l, strxfrm_l are standardized now Message-ID: <2e800fd9-8c39-7794-b0b7-7461de170cdf@panix.com> Date: Wed, 16 Nov 2016 14:47:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 I have checked in the following patch, which corrects comments in string.h. strcoll_l and strxfrm_l are in POSIX.1-2008, and are correctly under #ifdef __USE_XOPEN2K8, but the comments say that they have not yet been standardized. zw * string/string.h: Remove obsolete comment stating that strcoll_l and strxfrm_l have not yet been standardized. diff --git a/string/string.h b/string/string.h index 57deaa4..b103e64 100644 --- a/string/string.h +++ b/string/string.h @@ -154,15 +154,13 @@ extern size_t strxfrm (char *__restrict __dest, __END_NAMESPACE_STD #ifdef __USE_XOPEN2K8 -/* The following functions are equivalent to the both above but they - take the locale they use for the collation as an extra argument. - This is not standardsized but something like will come. */ # include -/* Compare the collated forms of S1 and S2 using rules from L. */ +/* Compare the collated forms of S1 and S2, using sorting rules from L. */ extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l) __THROW __attribute_pure__ __nonnull ((1, 2, 3)); -/* Put a transformation of SRC into no more than N bytes of DEST. */ +/* Put a transformation of SRC into no more than N bytes of DEST, + using sorting rules from L. */ extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, __locale_t __l) __THROW __nonnull ((2, 4)); #endif