On 1 April 2026 02:46:23 CEST, Andreas Karlsson <[email protected]> wrote:
>My proposed fix is that we allocate a ULOC_LANG_CAPACITY buffer for the 
>language like we do in fix_icu_locale_str() instead of trying to be clever. An 
>alternative would be to use strncmp("tr", lang, 3) but that seems too clever 
>for my taste in something which is not performance critical. A third option 
>would be to check for U_STRING_NOT_TERMINATED_WARNING but I think that would 
>just be unnecessarily convoluted code.
>
>I have attached my proposed fix.

Since it is likely I introduced or at least exposed this bug somehow I am 
adding this to the open items for PG 19.

Andreas


Reply via email to