View | Details | Raw Unified | Return to bug 10871 | Differences between
and this patch

Collapse All | Expand All

(-)a/ChangeLog (+8 lines)
Lines 1-6 Link Here
1
2017-09-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
1
2017-09-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
2
2
3
	[BZ #10871]
3
	[BZ #10871]
4
	* manual/locale.texi (nl_langinfo): Document ALTMON_1..12,
5
	precise details about ABMON_1..12 and MON_1..12.
6
	* manual/time.texi (strftime): Document "%OB" and "%Ob" format
7
	specifiers, precise details about "%B" and "%b".
8
9
2017-09-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
10
11
	[BZ #10871]
4
	* locale/programs/locfile-kw.h: Regenerated for ab_alt_mon.
12
	* locale/programs/locfile-kw.h: Regenerated for ab_alt_mon.
5
13
6
2017-09-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
14
2017-09-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
(-)a/NEWS (+13 lines)
Lines 20-25 Major new features: Link Here
20
  leads to lower overall process restart latency, so there is benefit both
20
  leads to lower overall process restart latency, so there is benefit both
21
  from a security and performance perspective.
21
  from a security and performance perspective.
22
22
23
* Support of two grammatical forms of month names has been added.
24
  It has been precised that the month names returned by nl_langinfo with
25
  MON_1..12 and ABMON_1..12, and formatted by strftime with "%B" and "%b"
26
  format specifiers are in the grammatical form used when the month forms
27
  part of a complete date.  New series of valid arguments have been added
28
  to nl_langinfo: ALTMON_1..12 and _NL_ABALTMON_1..12 and the "O" modifier
29
  is supported with "%B" and "%b" format specifiers by strftime, they
30
  generate the month names in the grammatical form used when the month is
31
  named by itself.  This feature is required by several languages, mostly
32
  Slavic and Baltic but also Greek and probably more.  In other languages
33
  which do not need this feature the output month names will be the same
34
  for both old and new arguments of nl_langinfo and strftime.
35
23
Deprecated and removed features, and other changes affecting compatibility:
36
Deprecated and removed features, and other changes affecting compatibility:
24
37
25
* On GNU/Linux, the obsolete Linux constant PTRACE_SEIZE_DEVEL is no longer
38
* On GNU/Linux, the obsolete Linux constant PTRACE_SEIZE_DEVEL is no longer
(-)a/manual/locale.texi (-1 / +22 lines)
Lines 937-943 unabbreviated weekday name. Link Here
937
@itemx ABMON_10
937
@itemx ABMON_10
938
@itemx ABMON_11
938
@itemx ABMON_11
939
@itemx ABMON_12
939
@itemx ABMON_12
940
The return value is abbreviated name of the month.  @code{ABMON_1}
940
The return value is abbreviated name of the month, in the grammatical form
941
used when the month forms part of a complete date.  @code{ABMON_1}
941
corresponds to January.
942
corresponds to January.
942
@item MON_1
943
@item MON_1
943
@itemx MON_2
944
@itemx MON_2
Lines 953-958 corresponds to January. Link Here
953
@itemx MON_12
954
@itemx MON_12
954
Similar to @code{ABMON_1} etc., but here the month names are not abbreviated.
955
Similar to @code{ABMON_1} etc., but here the month names are not abbreviated.
955
Here the first value @code{MON_1} also corresponds to January.
956
Here the first value @code{MON_1} also corresponds to January.
957
@item ALTMON_1
958
@itemx ALTMON_2
959
@itemx ALTMON_3
960
@itemx ALTMON_4
961
@itemx ALTMON_5
962
@itemx ALTMON_6
963
@itemx ALTMON_7
964
@itemx ALTMON_8
965
@itemx ALTMON_9
966
@itemx ALTMON_10
967
@itemx ALTMON_11
968
@itemx ALTMON_12
969
Similar to @code{MON_1} etc., but here the month names are in the grammatical
970
form used when the month is named by itself.  The @code{strftime} functions
971
use this information when the modifier @code{O} is used in a format specifier
972
@code{B}.  Here the first value @code{ALTMON_1} also corresponds to January.
973
974
Note that in locales which do not need different grammatical forms of the
975
month names (including English) the return values are identical to those
976
returned by the corresponding @code{MON_@dots{}} values.
956
@item AM_STR
977
@item AM_STR
957
@itemx PM_STR
978
@itemx PM_STR
958
The return values are strings which can be used in the representation of time
979
The return values are strings which can be used in the representation of time
(-)a/manual/time.texi (-5 / +18 lines)
Lines 1347-1353 Emperors' reigns. Link Here
1347
1347
1348
@item O
1348
@item O
1349
Use the locale's alternate numeric symbols for numbers.  This modifier
1349
Use the locale's alternate numeric symbols for numbers.  This modifier
1350
applies only to numeric format specifiers.
1350
applies only to numeric format specifiers.  Additionally, as a GNU extension,
1351
this modifier also applies to the @code{%b} and @code{%B} format specifiers
1352
and forces the use of month names in the grammatical form used when the month
1353
is named by itself.
1351
@end table
1354
@end table
1352
1355
1353
If the format supports the modifier but no alternate representation
1356
If the format supports the modifier but no alternate representation
Lines 1366-1377 The full weekday name according to the current locale. Link Here
1366
1369
1367
@item %b
1370
@item %b
1368
The abbreviated month name according to the current locale.
1371
The abbreviated month name according to the current locale.
1372
As a GNU extension, it is specified that the abbreviated month name is
1373
produced in the grammatical form used when the month forms part of a complete
1374
date; applying the @code{O} modifier produces the abbreviated month name in
1375
the grammatical form used when the month is named by itself.
1369
1376
1370
@item %B
1377
@item %B
1371
The full month name according to the current locale.
1378
The full month name according to the current locale.
1379
As a GNU extension, it is specified that the full month name is produced in
1380
the grammatical form used when the month forms part of a complete date;
1381
applying the @code{O} modifier produces the abbreviated month name in the
1382
grammatical form used when the month is named by itself.
1372
1383
1373
Using @code{%B} together with @code{%d} produces grammatically
1384
Note that most of the locales do not need different grammatical forms of the
1374
incorrect results for some locales.
1385
month names.  In these locales the @code{O} modifier does not change the
1386
results of the @code{%b} and @code{%B} specifiers.
1375
1387
1376
@item %c
1388
@item %c
1377
The preferred calendar time representation for the current locale.
1389
The preferred calendar time representation for the current locale.
Lines 1779-1785 the full name. Link Here
1779
@itemx %B
1791
@itemx %B
1780
@itemx %h
1792
@itemx %h
1781
The month name according to the current locale, in abbreviated form or
1793
The month name according to the current locale, in abbreviated form or
1782
the full name.
1794
the full name.  If the current locale requires different grammatical forms of
1795
the month names then both forms are accepted, does not matter if the @code{O}
1796
modifier is present or not.
1783
1797
1784
@item %c
1798
@item %c
1785
The date and time representation for the current locale.
1799
The date and time representation for the current locale.
1786
- 

Return to bug 10871