)]}'
{
  "commit": "9725c0c198cdbcbb5440b0d2411e98dea8201a6d",
  "tree": "43079a06efb9f1e8b23260575d78b16b205ad090",
  "parents": [
    "08e816bcc8c8182348ba383a1ec86fc784466125"
  ],
  "author": {
    "name": "Kirill Makurin",
    "email": "maiddaisuki@outlook.com",
    "time": "Thu Feb 12 14:51:00 2026 +0900"
  },
  "committer": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Fri Feb 13 10:35:48 2026 +0800"
  },
  "message": "crt: call __mingw_isleadbyte_cp from __mingw_mbrtowc_cp\n\nPreviously, `__mingw_mbrtowc_cp` called CRT\u0027s `isleadbyte` to determine\nwhether first byte pointed to by `mbs` is a DBCS leading byte.\n\nWhile `__mingw_mbrtowc_cp` explicitly takes code page to operate on,\nCRT\u0027s `isleadbyte` depends on active locale set with `setlocale`.\n\nUsing `__mingw_isleadbyte_cp` instead has the following advantages:\n\n1. This removes dependency on CRT state, making it possible to call\n`__mingw_mbrtowc_cp` with any SBCS and DBCS code page regardless of thread\u0027s\nactive locale.\n\n2. This removes a possible race condition when either of `mbrlen`, `mbrtowc` or\n`mbsrtowcs` obtained code page information from CRT, but then another thread\nchanged global locale before `__mingw_mbrtowc_cp` has called `isleadbyte`,\nleading to incorrect results.\n\nSigned-off-by: Kirill Makurin \u003cmaiddaisuki@outlook.com\u003e\nSigned-off-by: LIU Hao \u003clh_mouse@126.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d079465c63c753f3deedd08edb60834d7288ed1d",
      "old_mode": 33188,
      "old_path": "mingw-w64-crt/misc/__mingw_mbrtowc_cp.c",
      "new_id": "22bbb062d7b51805fb5cbec65649a102a4ba6d93",
      "new_mode": 33188,
      "new_path": "mingw-w64-crt/misc/__mingw_mbrtowc_cp.c"
    }
  ]
}
