mirror of
https://github.com/python/cpython.git
synced 2026-06-23 11:33:30 -04:00
2a2bc82cef
On modern systems, the result of wcsxfrm() is much larger the size of the input string (from 4+2*n on Windows to 4+5*n on Linux for simple ASCII strings), so optimistic allocation of the buffer of the same size never works. The exception is if the locale is "C" (or unset), but in that case the `wcsxfrm` call should be fast (and calling `locale.strxfrm()` doesn't make too much sense in the first place).
Source files for standard library extension modules, and former extension modules that are now builtin modules.