This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Document strftime %Ob and %OB as C2X features
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Thu, 15 Aug 2019 17:43:44 +0000
- Subject: Document strftime %Ob and %OB as C2X features
- Ironport-sdr: Z0ZkpOqgyYElk0nCOZCGB3sWN0rQVIwdR3oi40sZAFnait23zNIhbyCCQva1nyfc1Lm4qHsr4D 4MfO7CeHwzWKI9Pehs1H0UhXxmQ2S1EFSh0bTUJmG5oizCpsloODKh+/t5JvPXjpHHucrWg9yD rQeNRu81G+yIdJ03T1MW1A7SZj+doiL842ahHiMQPSupRgF+nqpOmY5qUJVmIfWqsGm4ldBczC 50jy0Mjb07W1HACfdLkZ/mgdaVYnrOGUKS68YD4dxZpDw2OSy/fKnBIvDDlrds25NFnFXi95pg KmQ=
- Ironport-sdr: nkukdT2HpRnYG46XX/iV+QqgZkQoJi1jbTPqo2enlUfJ/qtloFXoPmoiaoJH5LGwzyf8hoNWA3 7utpCuhY+GmL/jeEmLheBApRlSX1hmDaErqvsgXkPA4xiYWhebMcw+Uw5UzmzbxPKkRnoCc/Na lk2i+fvZfbqQNDHvqKw5fxADfp3rM946MYgsRo1bWn6EXlBZnpUO3BYFCwY2a05pxxm8g1VLJI OakgRWPfiO+BkaNRfmiUzcOYlLc2OtgADzn7kZwRruS/+I2fDcx1REJ7OJeRV7+f0Yr09mxubY MDU=
C2X standardizes strftime %Ob and %OB support. This patch updates the
glibc manual to say these are C2X features.
Note: C2X seems unclear to me about whether %h being equivalent to %b
means %Oh is thereby allowed and equivalent to %Ob; I've asked WG14.
Tested with "make info" and "make pdf".
2019-08-15 Joseph Myers <joseph@codesourcery.com>
* manual/time.texi (strftime): Document %Ob and %OB as C2X
features.
diff --git a/manual/time.texi b/manual/time.texi
index bfa46dd45b..aeb24382ea 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -1352,7 +1352,7 @@ alternative numeric symbols.
With @code{%B}, @code{%b}, and @code{%h}: use the grammatical form for
month names that is appropriate when the month is named by itself,
rather than the form that is appropriate when the month is used as
-part of a complete date. This is a GNU extension.
+part of a complete date. This is a C2X feature.
@end table
If the format supports the modifier but no alternative representation
@@ -1372,13 +1372,13 @@ The full weekday name according to the current locale.
@item %b
The abbreviated month name according to the current locale, in the
grammatical form used when the month is part of a complete date.
-As a GNU extension, the @code{O} modifier can be used (@code{%Ob})
+As a C2X feature, the @code{O} modifier can be used (@code{%Ob})
to get the grammatical form used when the month is named by itself.
@item %B
The full month name according to the current locale, in the
grammatical form used when the month is part of a complete date.
-As a GNU extension, the @code{O} modifier can be used (@code{%OB})
+As a C2X feature, the @code{O} modifier can be used (@code{%OB})
to get the grammatical form used when the month is named by itself.
Note that not all languages need two different forms of the month
--
Joseph S. Myers
joseph@codesourcery.com