get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194769,
    "url": "http://patchwork.ozlabs.org/api/patches/2194769/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260209204132.1397967-2-jwakely@redhat.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260209204132.1397967-2-jwakely@redhat.com>",
    "list_archive_url": null,
    "date": "2026-02-09T15:54:21",
    "name": "[2/3] libstdc++: Fix std::regex_traits::lookup_classname [PR124015]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "476800d9a3e01eddacc58dccf62c082bb0d8a250",
    "submitter": {
        "id": 48004,
        "url": "http://patchwork.ozlabs.org/api/people/48004/?format=api",
        "name": "Jonathan Wakely",
        "email": "jwakely@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260209204132.1397967-2-jwakely@redhat.com/mbox/",
    "series": [
        {
            "id": 491567,
            "url": "http://patchwork.ozlabs.org/api/series/491567/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=491567",
            "date": "2026-02-09T15:54:21",
            "name": "[1/3] libstdc++: Improve tests for std::regex_traits::lookup_classname [PR124015]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491567/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194769/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194769/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=dSEdREYR;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=dSEdREYR",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.124"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f8xTx55vkz1xwG\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 07:43:01 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3A4FC4CF30B1\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  9 Feb 2026 20:42:59 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id 9AB0C4CF3044\n for <gcc-patches@gcc.gnu.org>; Mon,  9 Feb 2026 20:41:39 +0000 (GMT)",
            "from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-146-jsfvud2YODGDnxUMbolWLQ-1; Mon,\n 09 Feb 2026 15:41:37 -0500",
            "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id E64DC195609D; Mon,  9 Feb 2026 20:41:36 +0000 (UTC)",
            "from zen.kayari.org (unknown [10.45.226.222])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id B7BE5180029A; Mon,  9 Feb 2026 20:41:35 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 3A4FC4CF30B1",
            "OpenDKIM Filter v2.11.0 sourceware.org 9AB0C4CF3044"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 9AB0C4CF3044",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 9AB0C4CF3044",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770669699; cv=none;\n b=EoeqICCHuxXvVYtvMCegqj810hnttJkyL6Cc5f+k0OxqU20J8pc2KWPS7DEr3twXPVvh2pJMl4S6G1Mo/VG0B5cfE1d1nCJ4bvXJmUqX4/f5+Ddjp0wyNF5WgGcLDCMuiGkoQDESj46WDyy0w2NQBH0A68B5yLzC4j3Dl0+xF3w=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1770669699; c=relaxed/simple;\n bh=mcSCPmCWqvNC/hcaIQ5gXY4wW9sbh9B+DhZW4ID4Sns=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=kPrOei8rZnZGZznDMDJ1ynP4yib72CKxREX8hSs1mtMHGfyG6u9f8ogEiBmXMJRjiqc21IX3njeWi+3pGCFcJVVeWEJtjOjF90FaocX8O6jheMxucyxYJeMJWjrMsfI1ZgEtfdVKEDWJKMCf9jDR12OM6Z08jwWufAbXOKEdLQ0=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1770669699;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=S4l7thjuUdIstKVJgijG7kk4Qehl6YxDuPx/GYf6j0M=;\n b=dSEdREYREtSG0egtDmvlnSiekYLACtybLDF3tgZZKc3qxOCAq7NrTQFSVwjzBCxiSl7QJa\n VxXlh0XGQeeo5ELKKdNU5DXNZ+kKz2ZY4ao7v5xEmiTaJfEsVY7oE857Jk9FSRib7TIg8U\n BUJLGzd/iD3RTH7YQMhYcxrljP2Ymkw=",
        "X-MC-Unique": "jsfvud2YODGDnxUMbolWLQ-1",
        "X-Mimecast-MFC-AGG-ID": "jsfvud2YODGDnxUMbolWLQ_1770669697",
        "From": "Jonathan Wakely <jwakely@redhat.com>",
        "To": "gcc-patches@gcc.gnu.org,\n\tlibstdc++@gcc.gnu.org",
        "Subject": "[PATCH 2/3] libstdc++: Fix std::regex_traits::lookup_classname\n [PR124015]",
        "Date": "Mon,  9 Feb 2026 15:54:21 +0000",
        "Message-ID": "<20260209204132.1397967-2-jwakely@redhat.com>",
        "In-Reply-To": "<20260209204132.1397967-1-jwakely@redhat.com>",
        "References": "<20260209204132.1397967-1-jwakely@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "ebbE6Yf03YUjnbzXErvNeaA53lyjQhGxXpAT_4aZoDk_1770669697",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "This fixes a bug in regex_traits::lookup_classname(f, l, true) where the\nresult was always ctype_base::alpha for any input sequence [f, l) that\nhas the ctype_base::lower or ctype_base::upper bits set. For targets\nthat define alpha as lower|upper (rather than having a distinct bit for\nalpha) this bug meant that all masks which have lower or upper bits set\nwere replaced with alpha when the icase parameter is true. This has the\neffect that trying to do a case insensitive match for [:alnum:],\n[:graph:], or [:print:] was equivalent to matching [:alpha:] instead,\nwhich is obviously not correct.\n\nBased on inspection of the ctype_base.h files under the config/os\ndirectory, the bug appears to affect newlib, picolibc, qnx and vxworks.\n\nlibstdc++-v3/ChangeLog:\n\n\tPR libstdc++/124015\n\t* include/bits/regex.tcc (regex_traits::lookup_classname): Fix\n\thandling of icase parameter.\n---\n\nThis and patch 1/3 are suitable for backport to release branches.\n\nTested x86_64-linux.\n\n libstdc++-v3/include/bits/regex.tcc | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/libstdc++-v3/include/bits/regex.tcc b/libstdc++-v3/include/bits/regex.tcc\nindex 061b60042eca..71eadd20bfdb 100644\n--- a/libstdc++-v3/include/bits/regex.tcc\n+++ b/libstdc++-v3/include/bits/regex.tcc\n@@ -309,8 +309,8 @@ namespace __detail\n \tif (__s == __it.first)\n \t  {\n \t    if (__icase\n-\t\t&& ((__it.second\n-\t\t     & (ctype_base::lower | ctype_base::upper)) != 0))\n+\t\t&& (__it.second._M_base == ctype_base::lower\n+\t\t      || __it.second._M_base == ctype_base::upper))\n \t      return ctype_base::alpha;\n \t    return __it.second;\n \t  }\n",
    "prefixes": [
        "2/3"
    ]
}