[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2017-06-05 Thread Shaun Walbridge
Shaun Walbridge added the comment: For reference if anyone else still runs into this issue: the affected DLL is ucrtbase.dll, and the faulty version is 10.0.10240.0, which shipped with the 1507 release of Windows 10, the Windows 10 SDK, and Visual Studio 2015 RTM. This issue was resolved at

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-10-14 Thread Steve Dower
Steve Dower added the comment: I can confirm that this is fixed in an upcoming Windows update: Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import locale, time >>>

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is your OS? On Ubuntu: >>> import locale, time >>> locale.setlocale(locale.LC_ALL, 'ko_KR.UTF-8') 'ko_KR.UTF-8' >>> time.strftime('%a') '화' >>> locale.setlocale(locale.LC_ALL, 'ko_KR.eucKR') 'ko_KR.eucKR' >>> time.strftime('%a') '화' >>>

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +belopolsky -serhiy.storchaka ___ Python tracker ___

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-08 Thread eryksun
eryksun added the comment: It seems VC 14 has a bug here. In the new C runtime, strftime is implemented by calling wcsftime as follows: size_t const result = _Wcsftime_l(wstring.get(), maxsize, wformat.get(), timeptr, lc_time_arg, locale); if (result == 0) return 0; //

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-07 Thread grizlupo
New submission from grizlupo: >>> locale.setlocale(locale.LC_ALL, 'en') 'en' >>> time.strftime('%a') 'Tue' >>> locale.setlocale(locale.LC_ALL, 'ko') 'ko' >>> time.strftime('%a') Traceback (most recent call last): File "", line 1, in ValueError: embedded null byte >>> -- components: