get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218344,
    "url": "http://patchwork.ozlabs.org/api/patches/2218344/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260401052057.506695-1-sloosemore@baylibre.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": "<20260401052057.506695-1-sloosemore@baylibre.com>",
    "list_archive_url": null,
    "date": "2026-04-01T05:20:56",
    "name": "[PUSHED] doc: Fix wrong documentation for -finput-charset [PR61896]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d1b4248e630ca1e95ef84fb33b02a19b46120bd7",
    "submitter": {
        "id": 87955,
        "url": "http://patchwork.ozlabs.org/api/people/87955/?format=api",
        "name": "Sandra Loosemore",
        "email": "sloosemore@baylibre.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260401052057.506695-1-sloosemore@baylibre.com/mbox/",
    "series": [
        {
            "id": 498273,
            "url": "http://patchwork.ozlabs.org/api/series/498273/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498273",
            "date": "2026-04-01T05:20:56",
            "name": "[PUSHED] doc: Fix wrong documentation for -finput-charset [PR61896]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498273/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218344/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218344/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 (2048-bit key;\n unprotected) header.d=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=NmTxf+wV;\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 (2048-bit key,\n unprotected) header.d=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=NmTxf+wV",
            "sourceware.org;\n dmarc=none (p=none dis=none) header.from=baylibre.com",
            "sourceware.org; spf=pass smtp.mailfrom=baylibre.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.167.178"
        ],
        "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 4fltdD60BPz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 16:21:36 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 537564BA2E23\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Apr 2026 05:21:34 +0000 (GMT)",
            "from mail-oi1-f178.google.com (mail-oi1-f178.google.com\n [209.85.167.178])\n by sourceware.org (Postfix) with ESMTPS id 45C4E4BA2E0F\n for <gcc-patches@gcc.gnu.org>; Wed,  1 Apr 2026 05:21:04 +0000 (GMT)",
            "by mail-oi1-f178.google.com with SMTP id\n 5614622812f47-4648447e29bso2151613b6e.0\n for <gcc-patches@gcc.gnu.org>; Tue, 31 Mar 2026 22:21:04 -0700 (PDT)",
            "from nenufar.hsd1.co.comcast.net ([2601:281:d901:97c0::9a27])\n by smtp.gmail.com with ESMTPSA id\n 5614622812f47-46a9fe96897sm8217194b6e.2.2026.03.31.22.21.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 31 Mar 2026 22:21:02 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 537564BA2E23",
            "OpenDKIM Filter v2.11.0 sourceware.org 45C4E4BA2E0F"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 45C4E4BA2E0F",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 45C4E4BA2E0F",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775020864; cv=none;\n b=D/XVdiNc/EN4z7pyolzytzzaYKuw0Ns3Bt7ZRCPnms+gYB6d55pA/nNiHYxg5a2fSJIELYnSIGbOHGuI9HqBwXr9W6Z6MQ8zLOBvKuBC8d3uEDSSkmvx5yxGmXri9MabDKhckCChmk3ElkymOR9EnOYGXbuurOuowBrWwHLp5XQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775020864; c=relaxed/simple;\n bh=/STqB9CdHgPvxo6okwcnvLH5rb8/6g1RUYyf2IvoutI=;\n h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;\n b=AWKkZAPzOnTRvjFP00/CtA59qIRpx5snKvgye3DlWACd9h7jetYtPtemK5DJ1IoxOqS8PPZBrYjsx0aIsM4T83d6aaYh+jd5HHYVlEC2FSOR9KW+iE6W/9/xp4mOrOB7HKtr5xIONa5usy5tFJFjD+3oNnHJZu857LOwluotExs=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1775020863;\n x=1775625663;\n darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=jPuQTVpu+BIZiCSVHwCS6Rm4vxS7UuE+Cp2kANT7b+A=;\n b=NmTxf+wVEq94/vlwBF5K2GNQC2umlhHyTcy+/rbbw/XHXLk6IDq53/tpbDIjSbKzqX\n Uqv3mYtPDbHBqyFLC4f/ONHgV6gASR8Bp+WggrUgJ00NIW0ep3T0G1nm8jCJz5PwqJJ+\n Mq4bUkxna/PWhyyLwCzXIH9hPZcf7gaRoDkR0vfx6rSSAdxj2lG5HtWc00bGYJ2ChGhU\n Ms9TxyYPvZd99L4BaEU7QEyxS6usJKgrAKnqaDtjEVxeyGsl49BfigvfX08c7QmdZUJm\n DTNC6HuDgm3FDNQxxj7S5XvUrMOvQ9pV4Ah/XoxnBJC+mwKAUmfECGhAF7fjEEFCpuS8\n EK8Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775020863; x=1775625663;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=jPuQTVpu+BIZiCSVHwCS6Rm4vxS7UuE+Cp2kANT7b+A=;\n b=I/EDPmvL5lF7iAA3g4ZNrvFoxRk96bOtsn2nj8IlvjDoD4KPuXoMaOrpWnwafZI7KO\n qwtMRw3NiCwqkQnX9709fyh+TeDxvB13tqaeVDMjkJldUmOS4Oa7gbm/BdYFK+W1u5p/\n Y2pfnf10TSPOpeqlCX9B1Eo69yrbwOGYgiYmIbT4oLLDqE5lG9ZoNt3913xm0I5hkPut\n p2pzQf2YBHPvt/iZPMBkc72pZlcN1yIIjEtEwp88/9Z9gHRAx9wVT3cWUudOkU7bUFiz\n EVlK+RpdcAg4nkCNuNb+vdBifIoGwcUyBomZmwMw+WgFvuGzRKjOGhR6OPEormVhM9Nn\n pU4A==",
        "X-Gm-Message-State": "AOJu0YwNwWHZlk9Ys/v+8Ek4ErLxQHKQmr4zXotgTxxUPUTSWouf+G5t\n 7q3zdkBLigvw/Terw7qhk2zM0kgzAOyJB8clmGedbhtlBZ0dA5/Nry0qvib2ejxgslbK4An00cA\n hLI/b",
        "X-Gm-Gg": "ATEYQzzexBreUJGx0O5tpPSFrmlZYL7Iw99+LWS67EsbU3V9KR3P7Cw6IYtyUNINVGQ\n Uf/8+LX+D0jIK4e3AuP6TLgCcaJVlwoP5WKmQrL7F+DgewspfFeSWKo9Nd+l0XP5pHDDS7qJqE+\n pGTpqgVE/xqZy+JAqlbjHgW5rjfKCiEDXmVr0fNPSEe9RpaXPCKlrm8pkDx0Kp5MZj6d5rzWARa\n 2KTi1v846ocDYPyFwtOwlbcki9nRt+I3AOncivdYhoMjtBCxN4CSN1x2SzFtaXUcqzS/j/oDDdS\n XMdc8tfvVb+7SXp6u0d0fyGbRZSw0jAxHHo5uBQcy3ZU+oYwLnhtPhRUSbId5SYPqD2IIps5J9a\n 9J5yd8R3RJaf6Q++mbYntDNYrGYS7mlggCv+ilPcMBrT68rY1QXayKA8mFHag6Qv3UO0aHizQ0k\n +BWB2wyviPLHaimcfjB4ce4tMDP0jv1pxX",
        "X-Received": "by 2002:a05:6808:518f:b0:45c:8f03:1e18 with SMTP id\n 5614622812f47-46ae018a99fmr1081520b6e.44.1775020863363;\n Tue, 31 Mar 2026 22:21:03 -0700 (PDT)",
        "From": "Sandra Loosemore <sloosemore@baylibre.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "[PUSHED] doc: Fix wrong documentation for -finput-charset [PR61896]",
        "Date": "Tue, 31 Mar 2026 23:20:56 -0600",
        "Message-Id": "<20260401052057.506695-1-sloosemore@baylibre.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "MIME-Version": "1.0",
        "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 patch fixes long-standing bugs in the documentation for\n-finput-charset.  Support for getting the default charset from the\nlocale has been disabled since 2004.  The error behavior has never been\ndocumented, and now there is -Winvalid-utf8 that should be mentioned\nin this context too.\n\ngcc/ChangeLog\n\tPR c/61896\n\t* doc/cppopts.texi (-finput-charset=): Remove long-obsolete\n\tlocale discussion.  Document behavior about ill-formed inputs.\n---\n gcc/doc/cppopts.texi | 14 +++++++++-----\n 1 file changed, 9 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi\nindex e5ac751292b..94490775509 100644\n--- a/gcc/doc/cppopts.texi\n+++ b/gcc/doc/cppopts.texi\n@@ -372,13 +372,17 @@ problems with encodings that do not fit exactly in @code{wchar_t}.\n @cindex character set, input\n @item -finput-charset=@var{charset}\n Set the input character set, used for translation from the character\n-set of the input file to the source character set used by GCC@.  If the\n-locale does not specify, or GCC cannot get this information from the\n-locale, the default is UTF-8.  This can be overridden by either the locale\n-or this command-line option.  Currently the command-line option takes\n-precedence if there's a conflict.  @var{charset} can be any encoding\n+set of the input file to the source character set used by GCC@.  The\n+default is UTF-8.  @var{charset} can be any encoding\n supported by the system's @code{iconv} library routine.\n \n+If the input character set is UTF-8, warnings about ill-formed code\n+unit sequences are issued if @option{-Winvalid-utf8} is enabled.\n+Otherwise no diagnostics are issued when the input character set\n+matches the execution character set.  If they are different,\n+ill-formed code unit sequences result in an error during transcoding\n+to the execution character set.\n+\n @ifclear cppmanual\n @opindex fpch-deps\n @opindex fno-pch-deps\n",
    "prefixes": [
        "PUSHED"
    ]
}