Ticket #21517: patch-locale-from-apple-darwinsource.diff
File patch-locale-from-apple-darwinsource.diff, 1.1 KB (added by null.atou@…, 15 years ago) |
---|
-
Lib/locale.py
old new 522 522 """ 523 523 _setlocale(category, _build_localename(getdefaultlocale())) 524 524 525 if sys.platform in ('win32', ' darwin', 'mac'):525 if sys.platform in ('win32', 'mac'): 526 526 # On Win32, this will return the ANSI code page 527 527 # On the Mac, it should return the system encoding; 528 528 # it might return "ascii" instead -
Modules/_localemodule.c
old new 32 32 #include <wchar.h> 33 33 #endif 34 34 35 #if defined(__APPLE__)35 #if 0 36 36 #include <CoreFoundation/CoreFoundation.h> 37 37 #endif 38 38 … … 412 412 } 413 413 #endif 414 414 415 #if defined(__APPLE__)415 #if 0 416 416 /* 417 417 ** Find out what the current script is. 418 418 ** Donated by Fredrik Lundh. … … 689 689 METH_VARARGS, strcoll__doc__}, 690 690 {"strxfrm", (PyCFunction) PyLocale_strxfrm, 691 691 METH_VARARGS, strxfrm__doc__}, 692 #if defined(MS_WINDOWS) || defined(__APPLE__)692 #if defined(MS_WINDOWS) || 0 693 693 {"_getdefaultlocale", (PyCFunction) PyLocale_getdefaultlocale, METH_NOARGS}, 694 694 #endif 695 695 #ifdef HAVE_LANGINFO_H