[PATCH 1/2] ntdll: Add RtlLCIDToCultureName.

Mark Harmstone mark at harmstone.com
Thu Apr 8 12:15:48 CDT 2021


On 8/4/21 6:04 pm, Alexandre Julliard wrote:
> You could probably reuse the existing helper. This would need some tests
> about the behavior on short buffers.

Why? UNICODE_STRINGs don't need to be null-terminated.


>> +    /* kernel32 doesn't store information about primary languages */
> LOCALE_SPARENT seems pretty close.

Yes, but that's still indexed by lang-sublang pair. You'd have to loop through every language, which seems overkill just to avoid a bit of code duplication. And you run into the problem where LANG_CROATIAN == LANG_SERBIAN, but they still have separate strings.




More information about the wine-devel mailing list