get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/815420/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 815420,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/815420/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/742475879.1094767.1505817734249@poczta.nazwa.pl/",
    "project": {
        "id": 41,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/41/?format=api",
        "name": "GNU C Library",
        "link_name": "glibc",
        "list_id": "libc-alpha.sourceware.org",
        "list_email": "libc-alpha@sourceware.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<742475879.1094767.1505817734249@poczta.nazwa.pl>",
    "list_archive_url": null,
    "date": "2017-09-19T10:42:14",
    "name": "[RFC,v9,2/6] Implement alternative month names (bug 10871).",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "81fcc3dfe24fab4af41a3d8bec1d352a6c7ac49f",
    "submitter": {
        "id": 67752,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/67752/?format=api",
        "name": "Rafal Luzynski",
        "email": "digitalfreak@lingonborough.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/742475879.1094767.1505817734249@poczta.nazwa.pl/mbox/",
    "series": [
        {
            "id": 3831,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/3831/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=3831",
            "date": "2017-09-19T10:39:23",
            "name": "Month names in alternative grammatical case",
            "version": 9,
            "mbox": "http://patchwork.ozlabs.org/series/3831/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/815420/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/815420/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-84715-incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84715-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"s7t5At2p\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxKG65mV3z9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 20:42:54 +1000 (AEST)",
            "(qmail 14303 invoked by alias); 19 Sep 2017 10:42:22 -0000",
            "(qmail 10127 invoked by uid 89); 19 Sep 2017 10:42:19 -0000"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:reply-to:to:message-id:subject\n\t:mime-version:content-type:content-transfer-encoding; q=dns; s=\n\tdefault; b=gKZP6Etrbea/qitF0tgNba8sgXsayJ9OZCYSheLX6q4gcxohcij6k\n\tO/p+aja3bOIHE2c8qi+TPPug82AnBfwIDmnVSTekMuJugCdJcjQpvkNMA7rCZkCJ\n\tboiFArML0cquTLraUwseMJaR9P1YLZrVtuge6Eqo9TnmU2tdwqSnGg=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:reply-to:to:message-id:subject\n\t:mime-version:content-type:content-transfer-encoding; s=default;\n\tbh=SGKXkxrVgFtQljdRHdL3j5fOW8I=; b=s7t5At2pudO0che1fP+YrEbu8zeI\n\tuEfFxhjrXh8eJxSFu1L2qudOH8mfib7lY2FTaNYYKTBuqqmPNBocv1AQxp1e6f4v\n\tK5my44sgtpuANKnkrsj+52c5/gdMzcACFSdGoPp0dKwri+xYVxv8dLWu/HCUoJOf\n\twPcmoAMAHigPV1U=",
        "Mailing-List": "contact libc-alpha-help@sourceware.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>",
        "List-Subscribe": "<mailto:libc-alpha-subscribe@sourceware.org>",
        "List-Archive": "<http://sourceware.org/ml/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>",
        "Sender": "libc-alpha-owner@sourceware.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-23.8 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=time,\n\tFebruary, february, fulfilled",
        "X-HELO": "aev204.rev.netart.pl",
        "X-Spam-Score": "0",
        "Date": "Tue, 19 Sep 2017 12:42:14 +0200 (CEST)",
        "From": "Rafal Luzynski <digitalfreak@lingonborough.com>",
        "Reply-To": "Rafal Luzynski <digitalfreak@lingonborough.com>",
        "To": "libc-alpha@sourceware.org",
        "Message-ID": "<742475879.1094767.1505817734249@poczta.nazwa.pl>",
        "Subject": "[RFC][PATCH v9 2/6] Implement alternative month names (bug 10871).",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "7bit",
        "X-Originating-Client": "com.openexchange.ox.gui.dhtml"
    },
    "content": "Some languages (Slavic, Baltic, etc.) require a genitive case of the\nmonth name when formatting a full date (with the day number) while\nthey require a nominative case when referring to the month standalone.\nThis requirement cannot be fulfilled without providing two forms for\neach month name.  From now it is precised that nl_langinfo(MON_1)\nseries (up to MON_12) and strftime(\"%B\") generate the month names in\nthe grammatical form used when the month forms part of a complete date.\nIf the grammatical form used when the month is named by itself is needed,\nthe new values nl_langinfo(ALTMON_1) (up to ALTMON_12) and\nstrftime(\"%OB\") are supported.  This new feature is optional so the\nlanguages which do not need it or do not yet provide the updated\nlocales simply do not use it and their behaviour is unchanged.\n\n\t[BZ #10871]\n\t* locale/C-time.c: Add alternative month names, define them as the\n\tsame as mon explicitly.\n\t* locale/categories.def: alt_mon and wide-alt_mon added.\n\t* locale/langinfo.h: ALTMON_1 .. ALTMON_12 and similar contants\n\tdefined.\n\t* locale/programs/ld-time.c: Alternative month names support\n\tadded, they are a copy of mon if not specified explicitly.\n\t* locale/programs/locfile-kw.gperf: alt_mon defined.\n\t* locale/programs/locfile-token.h: tok_alt_mon defined.\n\t* localedata/tst-langinfo.c: Add tests for the new constants\n\tALTMON_1 .. ALTMON_12.\n\t* time/strftime_l.c: %OB format for alternative month names\n\tadded.\n\t* time/strptime_l.c: Alternative month names also recognized.\n---\n ChangeLog                        | 18 +++++++++++++++\n locale/C-time.c                  | 28 ++++++++++++++++++++--\n locale/categories.def            |  2 ++\n locale/langinfo.h                | 50 ++++++++++++++++++++++++++++++++++++++--\n locale/programs/ld-time.c        | 21 +++++++++++++++++\n locale/programs/locfile-kw.gperf |  1 +\n locale/programs/locfile-token.h  |  1 +\n localedata/tst-langinfo.c        | 12 ++++++++++\n time/strftime_l.c                | 11 +++++++--\n time/strptime_l.c                | 24 +++++++++++++++++++\n 10 files changed, 162 insertions(+), 6 deletions(-)\n\n # define HERE_AM_STR (_nl_C_LC_TIME.values[_NL_ITEM_INDEX (AM_STR)].string)\n@@ -402,6 +404,20 @@ __strptime_internal (const char *rp, const char *fmt,\nstruct tm *tmp,\n \t      if (s.decided !=raw)\n \t\t{\n \t\t  trp = rp;\n+#ifdef _LIBC\n+\t\t  /* First check the alt month.  */\n+\t\t  if (match_string (_NL_CURRENT (LC_TIME, ALTMON_1 + cnt), trp)\n+\t\t      && trp > rp_longest)\n+\t\t    {\n+\t\t      rp_longest = trp;\n+\t\t      cnt_longest = cnt;\n+\t\t      if (s.decided == not\n+\t\t\t  && strcmp (_NL_CURRENT (LC_TIME, ALTMON_1 + cnt),\n+\t\t\t\t     alt_month_name[cnt]))\n+\t\t\tdecided_longest = loc;\n+\t\t    }\n+\t\t  trp = rp;\n+#endif\n \t\t  if (match_string (_NL_CURRENT (LC_TIME, MON_1 + cnt), trp)\n \t\t      && trp > rp_longest)\n \t\t    {\n@@ -428,6 +444,10 @@ __strptime_internal (const char *rp, const char *fmt,\nstruct tm *tmp,\n \t      if (s.decided != loc\n \t\t  && (((trp = rp, match_string (month_name[cnt], trp))\n \t\t       && trp > rp_longest)\n+#ifdef _LIBC\n+\t\t      || ((trp = rp, match_string (alt_month_name[cnt], trp))\n+\t\t\t  && trp > rp_longest)\n+#endif\n \t\t      || ((trp = rp, match_string (ab_month_name[cnt], trp))\n \t\t\t  && trp > rp_longest)))\n \t\t{\n@@ -1015,6 +1035,10 @@ __strptime_internal (const char *rp, const char *fmt,\nstruct tm *tmp,\n \tcase 'O':\n \t  switch (*fmt++)\n \t    {\n+\t    case 'B':\n+\t      /* Undo the increment and continue.  */\n+\t      fmt--;\n+\t      break;\n \t    case 'd':\n \t    case 'e':\n \t      /* Match day of month using alternate numeric symbols.  */",
    "diff": "diff --git a/ChangeLog b/ChangeLog\nindex 3b8e6c5..b0636ff 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -1,5 +1,23 @@\n 2017-09-19  Rafal Luzynski  <digitalfreak@lingonborough.com>\n \n+\t[BZ #10871]\n+\t* locale/C-time.c: Add alternative month names, define them as the\n+\tsame as mon explicitly.\n+\t* locale/categories.def: alt_mon and wide-alt_mon added.\n+\t* locale/langinfo.h: ALTMON_1 .. ALTMON_12 and similar contants\n+\tdefined.\n+\t* locale/programs/ld-time.c: Alternative month names support\n+\tadded, they are a copy of mon if not specified explicitly.\n+\t* locale/programs/locfile-kw.gperf: alt_mon defined.\n+\t* locale/programs/locfile-token.h: tok_alt_mon defined.\n+\t* localedata/tst-langinfo.c: Add tests for the new constants\n+\tALTMON_1 .. ALTMON_12.\n+\t* time/strftime_l.c: %OB format for alternative month names\n+\tadded.\n+\t* time/strptime_l.c: Alternative month names also recognized.\n+\n+2017-09-19  Rafal Luzynski  <digitalfreak@lingonborough.com>\n+\n \t* locale/loadlocale.c: Correct size of\n \t_nl_value_type_LC_<category> arrays.\n \ndiff --git a/locale/C-time.c b/locale/C-time.c\nindex 31d8704..ee33652 100644\n--- a/locale/C-time.c\n+++ b/locale/C-time.c\n@@ -30,7 +30,7 @@ const struct __locale_data _nl_C_LC_TIME attribute_hidden =\n   { NULL, },\t\t\t/* no cached data */\n   UNDELETABLE,\n   0,\n-  111,\n+  135,\n   {\n     { .string = \"Sun\" },\n     { .string = \"Mon\" },\n@@ -142,6 +142,30 @@ const struct __locale_data _nl_C_LC_TIME attribute_hidden =\n     { .string = \"\" },\n     { .string = \"%a %b %e %H:%M:%S %Z %Y\" },\n     { .wstr = (const uint32_t *) L\"%a %b %e %H:%M:%S %Z %Y\" },\n-    { .string = _nl_C_codeset }\n+    { .string = _nl_C_codeset },\n+    { .string = \"January\" },\n+    { .string = \"February\" },\n+    { .string = \"March\" },\n+    { .string = \"April\" },\n+    { .string = \"May\" },\n+    { .string = \"June\" },\n+    { .string = \"July\" },\n+    { .string = \"August\" },\n+    { .string = \"September\" },\n+    { .string = \"October\" },\n+    { .string = \"November\" },\n+    { .string = \"December\" },\n+    { .wstr = (const uint32_t *) L\"January\" },\n+    { .wstr = (const uint32_t *) L\"February\" },\n+    { .wstr = (const uint32_t *) L\"March\" },\n+    { .wstr = (const uint32_t *) L\"April\" },\n+    { .wstr = (const uint32_t *) L\"May\" },\n+    { .wstr = (const uint32_t *) L\"June\" },\n+    { .wstr = (const uint32_t *) L\"July\" },\n+    { .wstr = (const uint32_t *) L\"August\" },\n+    { .wstr = (const uint32_t *) L\"September\" },\n+    { .wstr = (const uint32_t *) L\"October\" },\n+    { .wstr = (const uint32_t *) L\"November\" },\n+    { .wstr = (const uint32_t *) L\"December\" }\n   }\n };\ndiff --git a/locale/categories.def b/locale/categories.def\nindex 27a6129..53ec8c5 100644\n--- a/locale/categories.def\n+++ b/locale/categories.def\n@@ -249,6 +249,8 @@ DEFINE_CATEGORY\n   DEFINE_ELEMENT (_DATE_FMT,                \"date_fmt\",            opt, string)\n   DEFINE_ELEMENT (_NL_W_DATE_FMT,           \"wide-date_fmt\",       opt,\nwstring)\n   DEFINE_ELEMENT (_NL_TIME_CODESET,\t    \"time-codeset\",\t   std, string)\n+  DEFINE_ELEMENT (ALTMON_1,       \"alt_mon\",       opt, stringarray, 12, 12)\n+  DEFINE_ELEMENT (_NL_WALTMON_1,  \"wide-alt_mon\",  opt, wstringarray, 12, 12)\n   ), NO_POSTLOAD)\n \n \ndiff --git a/locale/langinfo.h b/locale/langinfo.h\nindex 1403957..78103ce 100644\n--- a/locale/langinfo.h\n+++ b/locale/langinfo.h\n@@ -100,7 +100,8 @@ enum\n   ABMON_12,\n #define ABMON_12\t\tABMON_12\n \n-  /* Long month names.  */\n+  /* Long month names, in the grammatical form used when the month\n+     forms part of a complete date.  */\n   MON_1,\t\t\t/* January */\n #define MON_1\t\t\tMON_1\n   MON_2,\n@@ -189,7 +190,8 @@ enum\n   _NL_WABMON_11,\n   _NL_WABMON_12,\n \n-  /* Long month names.  */\n+  /* Long month names, in the grammatical form used when the month\n+     forms part of a complete date.  */\n   _NL_WMON_1,\t\t/* January */\n   _NL_WMON_2,\n   _NL_WMON_3,\n@@ -231,6 +233,50 @@ enum\n \n   _NL_TIME_CODESET,\n \n+  /* Long month names, in the grammatical form used when the month\n+     is named by itself.  */\n+  __ALTMON_1,\t\t\t/* January */\n+  __ALTMON_2,\n+  __ALTMON_3,\n+  __ALTMON_4,\n+  __ALTMON_5,\n+  __ALTMON_6,\n+  __ALTMON_7,\n+  __ALTMON_8,\n+  __ALTMON_9,\n+  __ALTMON_10,\n+  __ALTMON_11,\n+  __ALTMON_12,\n+#ifdef __USE_GNU\n+# define ALTMON_1\t\t__ALTMON_1\n+# define ALTMON_2\t\t__ALTMON_2\n+# define ALTMON_3\t\t__ALTMON_3\n+# define ALTMON_4\t\t__ALTMON_4\n+# define ALTMON_5\t\t__ALTMON_5\n+# define ALTMON_6\t\t__ALTMON_6\n+# define ALTMON_7\t\t__ALTMON_7\n+# define ALTMON_8\t\t__ALTMON_8\n+# define ALTMON_9\t\t__ALTMON_9\n+# define ALTMON_10\t\t__ALTMON_10\n+# define ALTMON_11\t\t__ALTMON_11\n+# define ALTMON_12\t\t__ALTMON_12\n+#endif\n+\n+  /* Long month names, in the grammatical form used when the month\n+     is named by itself.  */\n+  _NL_WALTMON_1,\t\t\t/* January */\n+  _NL_WALTMON_2,\n+  _NL_WALTMON_3,\n+  _NL_WALTMON_4,\n+  _NL_WALTMON_5,\n+  _NL_WALTMON_6,\n+  _NL_WALTMON_7,\n+  _NL_WALTMON_8,\n+  _NL_WALTMON_9,\n+  _NL_WALTMON_10,\n+  _NL_WALTMON_11,\n+  _NL_WALTMON_12,\n+\n   _NL_NUM_LC_TIME,\t/* Number of indices in LC_TIME category.  */\n \n   /* LC_COLLATE category: text sorting.\ndiff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c\nindex 32e9c41..0383179 100644\n--- a/locale/programs/ld-time.c\n+++ b/locale/programs/ld-time.c\n@@ -91,6 +91,9 @@ struct locale_time_t\n   const char *date_fmt;\n   const uint32_t *wdate_fmt;\n   int alt_digits_defined;\n+  const char *alt_mon[12];\n+  const uint32_t *walt_mon[12];\n+  int alt_mon_defined;\n   unsigned char week_ndays;\n   uint32_t week_1stday;\n   unsigned char week_1stweek;\n@@ -652,6 +655,15 @@ time_output (struct localedef_t *locale, const struct\ncharmap_t *charmap,\n   add_locale_string (&file, time->date_fmt);\n   add_locale_wstring (&file, time->wdate_fmt);\n   add_locale_string (&file, charmap->code_set_name);\n+\n+  /* The alt'mons.  */\n+  for (n = 0; n < 12; ++n)\n+    add_locale_string (&file, time->alt_mon[n] ?: \"\");\n+\n+  /* The wide character alt'mons.  */\n+  for (n = 0; n < 12; ++n)\n+    add_locale_wstring (&file, time->walt_mon[n] ?: empty_wstr);\n+\n   write_locale_data (output_path, LC_TIME, \"LC_TIME\", &file);\n }\n \n@@ -795,6 +807,7 @@ time_read (struct linereader *ldfile, struct localedef_t\n*result,\n \t  STRARR_ELEM (mon, 12, 12);\n \t  STRARR_ELEM (am_pm, 2, 2);\n \t  STRARR_ELEM (alt_digits, 0, 100);\n+\t  STRARR_ELEM (alt_mon, 12, 12);\n \n \tcase tok_era:\n \t  /* Ignore the rest of the line if we don't need the input of\n@@ -947,6 +960,14 @@ time_read (struct linereader *ldfile, struct localedef_t\n*result,\n \t    lr_error (ldfile, _(\"\\\n %1$s: definition does not end with `END %1$s'\"), \"LC_TIME\");\n \t  lr_ignore_rest (ldfile, now->tok == tok_lc_time);\n+\n+\t  /* If alt_mon was not specified, make it a copy of mon.  */\n+\t  if (!ignore_content && !time->alt_mon_defined)\n+\t    {\n+\t      memcpy (time->alt_mon, time->mon, sizeof (time->mon));\n+\t      memcpy (time->walt_mon, time->wmon, sizeof (time->wmon));\n+\t      time->alt_mon_defined = 1;\n+\t    }\n \t  return;\n \n \tdefault:\ndiff --git a/locale/programs/locfile-kw.gperf b/locale/programs/locfile-kw.gperf\nindex 3605d15..3d11cc6 100644\n--- a/locale/programs/locfile-kw.gperf\n+++ b/locale/programs/locfile-kw.gperf\n@@ -148,6 +148,7 @@ first_workday,          tok_first_workday,          0\n cal_direction,          tok_cal_direction,          0\n timezone,               tok_timezone,               0\n date_fmt,               tok_date_fmt,               0\n+alt_mon,                tok_alt_mon,                0\n LC_MESSAGES,            tok_lc_messages,            0\n yesexpr,                tok_yesexpr,                0\n noexpr,                 tok_noexpr,                 0\ndiff --git a/locale/programs/locfile-token.h b/locale/programs/locfile-token.h\nindex 0c32f2c..2a313b2 100644\n--- a/locale/programs/locfile-token.h\n+++ b/locale/programs/locfile-token.h\n@@ -186,6 +186,7 @@ enum token_t\n   tok_cal_direction,\n   tok_timezone,\n   tok_date_fmt,\n+  tok_alt_mon,\n   tok_lc_messages,\n   tok_yesexpr,\n   tok_noexpr,\ndiff --git a/localedata/tst-langinfo.c b/localedata/tst-langinfo.c\nindex 1012f56..c23d9e0 100644\n--- a/localedata/tst-langinfo.c\n+++ b/localedata/tst-langinfo.c\n@@ -50,6 +50,18 @@ struct map\n   VAL (ABMON_8),\n   VAL (ABMON_9),\n   VAL (ALT_DIGITS),\n+  VAL (ALTMON_1),\n+  VAL (ALTMON_10),\n+  VAL (ALTMON_11),\n+  VAL (ALTMON_12),\n+  VAL (ALTMON_2),\n+  VAL (ALTMON_3),\n+  VAL (ALTMON_4),\n+  VAL (ALTMON_5),\n+  VAL (ALTMON_6),\n+  VAL (ALTMON_7),\n+  VAL (ALTMON_8),\n+  VAL (ALTMON_9),\n   VAL (AM_STR),\n   VAL (CRNCYSTR),\n   VAL (CURRENCY_SYMBOL),\ndiff --git a/time/strftime_l.c b/time/strftime_l.c\nindex b5ba9ca..1c4bed8 100644\n--- a/time/strftime_l.c\n+++ b/time/strftime_l.c\n@@ -492,6 +492,9 @@ __strftime_internal (CHAR_T *s, size_t maxsize, const CHAR_T\n*format,\n # define f_month \\\n   ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11\t\t\t     \\\n \t\t     ? \"?\" : _NL_CURRENT (LC_TIME, NLW(MON_1) + tp->tm_mon)))\n+# define f_altmonth \\\n+  ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11\t\t\t     \\\n+\t\t     ? \"?\" : _NL_CURRENT (LC_TIME, NLW(ALTMON_1) + tp->tm_mon)))\n # define ampm \\\n   ((const CHAR_T *) _NL_CURRENT (LC_TIME, tp->tm_hour > 11\t\t      \\\n \t\t\t\t ? NLW(PM_STR) : NLW(AM_STR)))\n@@ -507,6 +510,7 @@ __strftime_internal (CHAR_T *s, size_t maxsize, const CHAR_T\n*format,\n \t\t   ? \"?\" : month_name[tp->tm_mon])\n #  define a_wkday f_wkday\n #  define a_month f_month\n+#  define f_altmonth f_month\n #  define ampm (L_(\"AMPM\") + 2 * (tp->tm_hour > 11))\n \n   size_t aw_len = 3;\n@@ -785,7 +789,7 @@ __strftime_internal (CHAR_T *s, size_t maxsize, const CHAR_T\n*format,\n #endif\n \n \tcase L_('B'):\n-\t  if (modifier != 0)\n+\t  if (modifier == L_('E'))\n \t    goto bad_format;\n \t  if (change_case)\n \t    {\n@@ -793,7 +797,10 @@ __strftime_internal (CHAR_T *s, size_t maxsize, const\nCHAR_T *format,\n \t      to_lowcase = 0;\n \t    }\n #if defined _NL_CURRENT || !HAVE_STRFTIME\n-\t  cpy (STRLEN (f_month), f_month);\n+\t  if (modifier == L_('O'))\n+\t    cpy (STRLEN (f_altmonth), f_altmonth);\n+\t  else\n+\t    cpy (STRLEN (f_month), f_month);\n \t  break;\n #else\n \t  goto underlying_strftime;\ndiff --git a/time/strptime_l.c b/time/strptime_l.c\nindex 3afc33a..b99f5d2 100644\n--- a/time/strptime_l.c\n+++ b/time/strptime_l.c\n@@ -124,6 +124,8 @@ extern const struct __locale_data _nl_C_LC_TIME\nattribute_hidden;\n   (&_nl_C_LC_TIME.values[_NL_ITEM_INDEX (ABDAY_1)].string)\n # define month_name (&_nl_C_LC_TIME.values[_NL_ITEM_INDEX (MON_1)].string)\n # define ab_month_name (&_nl_C_LC_TIME.values[_NL_ITEM_INDEX (ABMON_1)].string)\n+# define alt_month_name \\\n+  (&_nl_C_LC_TIME.values[_NL_ITEM_INDEX (ALTMON_1)].string)\n # define HERE_D_T_FMT (_nl_C_LC_TIME.values[_NL_ITEM_INDEX (D_T_FMT)].string)\n # define HERE_D_FMT (_nl_C_LC_TIME.values[_NL_ITEM_INDEX (D_FMT)].string)\n",
    "prefixes": [
        "RFC",
        "v9",
        "2/6"
    ]
}