Martin v. Löwis
18e165558b
Merge ssize_t branch.
2006-02-15 17:27:45 +00:00
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
...
Probably should be backported.
2006-01-19 06:09:39 +00:00
Brett Cannon
5ce2587b1b
Fix grammatical typo in a comment.
2005-03-01 03:16:34 +00:00
Marc-André Lemburg
a9cadcd41b
Correct the handling of 0-termination of PyUnicode_AsWideChar()
...
and its usage in PyLocale_strcoll().
Clarify the documentation on this.
Thanks to Andreas Degert for pointing this out.
2004-11-22 13:02:31 +00:00
Brett Cannon
269ab628d7
Fix the spelling of Fredrik Lundh's last name (unless there really is a
...
"Fredrik Lund" who contributed the code in question).
2004-08-27 05:00:22 +00:00
Gustavo Niemeyer
7bd33c5e22
This change implements the following gettext features, as
...
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.
2004-07-22 18:44:01 +00:00
Jack Jansen
59f072ad7c
Moved PyMac_GetScript() to _localemodule, which is the only place where
...
it is used, and made it private. Should fix #978662 .
2004-07-15 13:31:39 +00:00
Martin v. Löwis
737ea82a5a
Patch #774665 : Make Python LC_NUMERIC agnostic.
2004-06-08 18:52:54 +00:00
Hye-Shik Chang
c3a87b8dbb
Bug #920575 : Add a workaround for GNU libc nl_langinfo()'s returning NULL.
...
(Reported by Matthias Klose)
2004-03-21 19:34:30 +00:00
Jack Jansen
7107c1aff3
Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.
...
Cleaned up various things in the toolbox modules.
2003-11-20 13:31:00 +00:00
Jack Jansen
4bae2d5e46
Getting rid of code dependent on GUSI or the MetroWerks compiler.
2003-11-19 22:52:23 +00:00
Martin v. Löwis
f5b93736a2
Patch #798145 : Return correct information from nl_langinfo(RADIXCHAR).
...
Will backport to 2.3.
2003-09-04 18:24:47 +00:00
Martin v. Löwis
25f90d5c5d
Use de_DE in example, change message for unknown locale. Fixes #797447 .
...
Will backport to 2.3.
2003-09-03 04:50:13 +00:00
Mark Hammond
9a71475e9e
Fix [ 776721 ] locale.setlocale() leaks
...
Our saved locale was not being freed. Also check correct variable for
NULL.
2003-07-24 14:15:07 +00:00
Martin v. Löwis
73d538b9c6
Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,
...
and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding.
Adjust test case.
2003-03-05 15:13:47 +00:00
Martin v. Löwis
9c36c29156
Use wcscoll for _locale.strcoll if available.
2002-12-21 18:34:06 +00:00
Jack Jansen
747c3d3f02
We need macglue on MacPython-OS9 too.
2002-12-13 15:20:53 +00:00
Martin v. Löwis
52ea7e9244
Patch #632973 : Implement _getdefaultlocale for OS X.
2002-11-26 09:05:36 +00:00
Mark Hammond
fe51c6d66e
Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype
...
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
2002-08-02 02:27:13 +00:00
Tim Peters
7a1f91709b
WINDOWS_LEAN_AND_MEAN: There is no such symbol, although a very few
...
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.
2002-07-14 22:14:19 +00:00
Martin v. Löwis
6238d2b024
Patch #569753 : Remove support for WIN16.
...
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
2002-06-30 15:26:10 +00:00
Martin v. Löwis
14f8b4cfcb
Patch #568124 : Add doc string macros.
2002-06-13 20:33:02 +00:00
Martin v. Löwis
c6a7d7ef49
Guard gettext and friends with HAVE_LIBINTL_H. Fixes #549907 .
2002-05-02 12:16:29 +00:00
Martin v. Löwis
2ea2c9d1c3
Patch #546194 : Check constants individually. Fixes 534143 on OpenBSD.
...
Will backport to 2.2.
2002-04-19 21:04:41 +00:00
Martin v. Löwis
2e64c34850
Expose C library's gettext. Fixes #516412 .
2002-03-27 18:49:02 +00:00