summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix grammatical typo in a comment.Brett Cannon2005-03-011-1/+1
|
* Correct the handling of 0-termination of PyUnicode_AsWideChar()Marc-André Lemburg2004-11-221-1/+3
| | | | | | | | and its usage in PyLocale_strcoll(). Clarify the documentation on this. Thanks to Andreas Degert for pointing this out.
* Fix the spelling of Fredrik Lundh's last name (unless there really is aBrett Cannon2004-08-271-1/+1
| | | | "Fredrik Lund" who contributed the code in question).
* This change implements the following gettext features, asGustavo Niemeyer2004-07-221-0/+22
| | | | | | | | | | | | | | | | | | | | discussed recently in python-dev: In _locale module: - bind_textdomain_codeset() binding In gettext module: - bind_textdomain_codeset() function - lgettext(), lngettext(), ldgettext(), ldngettext(), which return translated strings encoded in preferred system encoding, if bind_textdomain_codeset() was not used. - Added equivalent functionality in translate() function and catalog classes. Every change was also documented.
* Moved PyMac_GetScript() to _localemodule, which is the only place whereJack Jansen2004-07-151-2/+26
| | | | it is used, and made it private. Should fix #978662.
* Patch #774665: Make Python LC_NUMERIC agnostic.Martin v. Löwis2004-06-081-63/+7
|
* Bug #920575: Add a workaround for GNU libc nl_langinfo()'s returning NULL.Hye-Shik Chang2004-03-211-2/+6
| | | | (Reported by Matthias Klose)
* Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.Jack Jansen2003-11-201-4/+4
| | | | Cleaned up various things in the toolbox modules.
* Getting rid of code dependent on GUSI or the MetroWerks compiler.Jack Jansen2003-11-191-1/+1
|
* Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).Martin v. Löwis2003-09-041-0/+12
| | | | Will backport to 2.3.
* Use de_DE in example, change message for unknown locale. Fixes #797447.Martin v. Löwis2003-09-031-2/+2
| | | | Will backport to 2.3.
* Fix [ 776721 ] locale.setlocale() leaksMark Hammond2003-07-241-1/+3
| | | | | Our saved locale was not being freed. Also check correct variable for NULL.
* Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,Martin v. Löwis2003-03-051-20/+0
| | | | | and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
* Use wcscoll for _locale.strcoll if available.Martin v. Löwis2002-12-211-5/+79
|
* We need macglue on MacPython-OS9 too.Jack Jansen2002-12-131-1/+1
|
* Patch #632973: Implement _getdefaultlocale for OS X.Martin v. Löwis2002-11-261-3/+3
|
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* WINDOWS_LEAN_AND_MEAN: There is no such symbol, although a very fewTim Peters2002-07-141-1/+1
| | | | | | | MSDN sample programs use it, apparently in error. The correct name is WIN32_LEAN_AND_MEAN. After switching to the correct name, in two cases more was needed because the code actually relied on things that disappear when WIN32_LEAN_AND_MEAN is defined.
* Patch #569753: Remove support for WIN16.Martin v. Löwis2002-06-301-3/+3
| | | | Rename all occurrences of MS_WIN32 to MS_WINDOWS.
* Patch #568124: Add doc string macros.Martin v. Löwis2002-06-131-26/+21
|
* Guard gettext and friends with HAVE_LIBINTL_H. Fixes #549907.Martin v. Löwis2002-05-021-1/+1
|
* Patch #546194: Check constants individually. Fixes 534143 on OpenBSD.Martin v. Löwis2002-04-191-2/+19
| | | | Will backport to 2.2.
* Expose C library's gettext. Fixes #516412.Martin v. Löwis2002-03-271-2/+96
|
* Don't imply XPG4 constants from CODESET presence. Fixes #534153.Martin v. Löwis2002-03-271-1/+4
| | | | 2.2.2 candiate.
* Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.Neal Norwitz2002-03-251-11/+5
|
* Verify arguments for nl_langinfo. Fixes #528879.Martin v. Löwis2002-03-121-84/+106
|
* sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters2001-11-281-1/+1
| | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
* PyLocale_setlocale(): silence compiler warning about free() of a constGuido van Rossum2001-09-201-1/+1
| | | | char *.
* Patch #449815: Set filesystemencoding based on CODESET.Martin v. Löwis2001-09-051-1/+20
|
* Fix portability problems with glibc 2.0, as reported in #449157.Martin v. Löwis2001-08-151-0/+3
|
* _DATE_FMT does not always accompany CODESET.Martin v. Löwis2001-08-101-0/+3
|
* Expose nl_langinfo through locale where available.Martin v. Löwis2001-08-101-0/+103
|
* RISCOS changes by dschwertbergerGuido van Rossum2001-03-021-0/+4
|
* Rationalize use of limits.h, moving the inclusion to Python.h.Fred Drake2000-09-261-1/+0
| | | | | | | | Add definitions of INT_MAX and LONG_MAX to pyport.h. Remove includes of limits.h and conditional definitions of INT_MAX and LONG_MAX elsewhere. This closes SourceForge patch #101659 and bug #115323.
* Don't call Py_FatalError in module initializationJeremy Hylton2000-09-011-3/+0
| | | | (leaving the rest of the modules for Barry)
* init_locale(): This file defines the _locale module, so theBarry Warsaw2000-08-181-1/+1
| | | | Py_FatalError() should reflect that.
* Clean up compiler warning exposed by GCC's -Wall option: make sureFred Drake2000-08-101-2/+2
| | | | | Python.h is included before standard headers since we set _GNU_SOURCE there. This ensures that strdup() is prototyped.
* Use METH_VARARGS instead of numeric constant 1 in method def. tablesAndrew M. Kuchling2000-08-031-4/+8
|
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* Implemented getdefaultlocale() for macintosh, after an idea by Fredrik.Jack Jansen2000-07-151-2/+10
|
* - _getdefaultlocale shouldn't accept argumentsFredrik Lundh2000-07-081-8/+11
| | | | - some more spacification...
* - added _getdefaultlocale implementation for WIN32Fredrik Lundh2000-07-081-269/+351
| | | | - ansified, reindentified, spacified, nullified
* Trent Mick: use size_t instead of int where appropriate (in strxfrm(),Guido van Rossum2000-06-281-1/+1
| | | | to hold strlen() outcome).
* Vladimir Marangozov:Guido van Rossum2000-05-031-5/+5
| | | | | Change Py_Malloc/Realloc/Free calls to PyMem_Malloc/Realloc/Free + PyErr_Nomemory on error check. Py_Malloc c.s. are obsolete.
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-3/+3
| | | | PyArg_ParseTuple() format string arguments as possible.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-041-3/+3
|
* Added <ctype.h>, needed for Windows.Guido van Rossum1998-06-191-0/+1
|
* Type casts, and added a strdup() declaration for the Mac.Guido van Rossum1998-04-281-4/+7
| | | | (Jack)
* LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES.Guido van Rossum1997-12-091-0/+2
|