)]}'
{
  "commit": "1e9d89db3c00fd1eab2959bd063832bebe6b868d",
  "tree": "2f5c96180737cd8388754f0a1b059c49ddf9c68b",
  "parents": [
    "445b54a7346277d3aa270c3b3c4e049dd9cf14d8"
  ],
  "author": {
    "name": "Nico Weber",
    "email": "thakis@chromium.org",
    "time": "Wed Nov 22 06:11:15 2023 +0000"
  },
  "committer": {
    "name": "Pdfium LUCI CQ",
    "email": "pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed Nov 22 06:11:15 2023 +0000"
  },
  "message": "Extract language code stripping from PDF_DecodeText() into function\n\nFor unicode text, strings can contain 0x001b (for UTF-16) or 0x1b (for\nUTF-8) followed a 2-byte BCP 47 language code (two ascii bytes),\noptionally followed by a 2-byte ISO 3166 country code (another two ascii\nbytes), terminated by another 0x001b / 0x1b.\n\nThese can be used to put different translations of the same text into\nthe same string.  But we currently just strip out these language codes.\n\nSince the language and country codes are ascii and they\u0027re a multiple of\ntwo, it\u0027s ok to strip them after doing UTF-16 / UTF-8 conversion.\n\nSo extract this code into a separate function.\n(I think the function can be simplified a bit now, but in this CL I\u0027d\nlike to try and due a pure code move.)\n\nThis modifies code added in\nhttps://pdfium-review.googlesource.com/c/pdfium/+/41070\n\n(After this it\u0027s hopefully easy to add support for UTF-8 text strings,\nwhich is my actual goal.)\n\nNo intended behavior change.\n\nChange-Id: I5e25a26a8f30308ee6ca377f17e82850f2d43274\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/113790\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\nAuto-Submit: Nico Weber \u003cthakis@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cb2a48e14206b36afb41d3e511ea6ec89f21786a",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/fpdf_parser_decode.cpp",
      "new_id": "78b81c19ff903cb9c3f6c0655eb2f04fb369e362",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/fpdf_parser_decode.cpp"
    }
  ]
}
