From a697b373002b25c643fb898cf95e474446b2ee97 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 21 Nov 2011 15:41:17 +0100 Subject: [PATCH] Another temporary hack to debug the issue #13441 Dump the wchar_t that we are going to decode and dump the locale --- Modules/_localemodule.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 236442f05b..6a751d6187 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -72,6 +72,20 @@ str2uni(const char* s) assert(res1 != (size_t)-1); #else assert(res1 == needed); +#endif +#ifdef Py_DEBUG + { + size_t i; + printf("Decode wchar_t {"); + for (i=0; i %s\n", result); +#endif result_object = str2uni(result); if (!result_object) return NULL; -- 2.40.0