Sourceware Bugzilla – Attachment 9914 Details for
Bug 10871
'mon' array should contain both nominative and genitive cases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Let alternative month names be a copy of regular ones
0008-Let-alternative-month-names-be-a-copy-of-regular-one.patch (text/plain), 1.40 KB, created by
Rafal Luzynski
on 2017-03-20 09:18:46 UTC
(
hide
)
Description:
Let alternative month names be a copy of regular ones
Filename:
MIME Type:
Creator:
Rafal Luzynski
Created:
2017-03-20 09:18:46 UTC
Size:
1.40 KB
patch
obsolete
>From 0fadaba384dea2ccdc9bd2ce94aa49b4bc0ac55d Mon Sep 17 00:00:00 2001 >From: Rafal Luzynski <digitalfreak@lingonborough.com> >Date: Wed, 11 Jan 2017 02:57:29 +0100 >Subject: [PATCH 08/16] Let alternative month names be a copy of regular ones > (bug 10871). > >If alt_mon definition is missing from a locale then let it be >a copy of mon array. Majority of languages do not need this feature >so let us accept the locale definition file without alt_mon and >provide the same content as mon when software requires alt_mon. > >[BZ #10871] >* locale/programs/ld-time.c: alternative month names are a copy of >mon if not provided explicitly. >--- > locale/programs/ld-time.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c >index 66a9e30..a6bf2b1 100644 >--- a/locale/programs/ld-time.c >+++ b/locale/programs/ld-time.c >@@ -960,6 +960,14 @@ time_read (struct linereader *ldfile, struct localedef_t *result, > lr_error (ldfile, _("\ > %1$s: definition does not end with `END %1$s'"), "LC_TIME"); > lr_ignore_rest (ldfile, now->tok == tok_lc_time); >+ >+ /* If alt_mon is missing then let it be a copy of mon. */ >+ if (!ignore_content && !time->alt_mon_defined) >+ { >+ memcpy (time->alt_mon, time->mon, sizeof (time->mon)); >+ memcpy (time->walt_mon, time->wmon, sizeof (time->wmon)); >+ time->alt_mon_defined = 1; >+ } > return; > > default: >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 10871
:
8795
|
8874
|
8875
|
8876
|
8877
|
8878
|
8879
|
8880
|
9122
|
9123
|
9124
|
9125
|
9126
|
9127
|
9569
|
9570
|
9571
|
9572
|
9573
|
9574
|
9575
|
9576
|
9577
|
9578
|
9579
|
9595
|
9596
|
9597
|
9598
|
9599
|
9709
|
9710
|
9711
|
9712
|
9713
|
9714
|
9715
|
9716
|
9717
|
9718
|
9719
|
9720
|
9721
|
9908
|
9909
|
9910
|
9911
|
9912
|
9913
|
9914
|
9915
|
9916
|
9917
|
9918
|
9919
|
10063
|
10064
|
10065
|
10225
|
10226
|
10227
|
10228
|
10229
|
10230
|
10231
|
10425
|
10426
|
10427
|
10428
|
10429
|
10430
|
10592
|
10593
|
10594
|
10595
|
10596
|
10597
|
10598
|
10599
|
10600
|
10601
|
10602
|
10731
|
10732
|
10733
|
10734
|
10735
|
10736
|
10737
|
10738
|
10739
|
10740
|
10741
|
10742