[issue9408] curses: Link against libncursesw instead of libncurses

2010-09-10 Thread Stefan Krah
Stefan Krah added the comment: Just a short explanation: In #7384 I used the strict version of the patch for 2.7/3.2 because Thomas Dickey recommended not to load readline+ncurses and ncursesw at the same time. Actually the distros should either link readline against libtinfo (Fedora) or onl

[issue5016] FileIO.seekable() can return False

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: It is fixed in 2.7 with the backport of the Python3's io library (r73394). -- resolution: accepted -> fixed status: open -> closed ___ Python tracker __

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: New patch: - add encoding option to TextFile constructor - parse_makefile() uses the heuristic from text_file.diff Note: sys.getfilesystemencoding() is always set in Python 3.2 (but it may be None in Python 2.x and Python < 3.2). -- Added file: http

[issue9561] distutils: set encoding to utf-8 for input and output files

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: I attached a patch to #6011 to set the encoding to read the Makefile. -- ___ Python tracker ___ ___

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed in r84696+r84697: confstr-minimal.diff + PyUnicode_DecodeFSDefaultAndSize(). -- ___ Python tracker ___ __

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9580] os.confstr() doesn't decode result according to PEP 383

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed in r84696+r84697: confstr-minimal.diff from #9579 + PyUnicode_DecodeFSDefaultAndSize(). Thanks for the patch, sorry for the delay. -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue9580] os.confstr() doesn't decode result according to PEP 383

2010-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: duplicate -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: test_pep277.patch removes the usage of os.path.supports_unicode_filenames from test_pep277: the test still pass on Debian Sid (Linux). Can someone test the patch on Mac OS X, FreeBSD and Solaris (and maybe other POSIX/UNIX OSes)? About Windows: supports_unico

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Oops, forget test_pep277.patch: I misunderstood r81149 (new way to detect if the filesystem supports unicode or not). test_pep277 fails with my patch on Linux with LC_CTYPE=C. -- ___ Python tracker

[issue9816] random.jumpahead and PRNG sequence independence

2010-09-10 Thread Joseph Schaeffer
Joseph Schaeffer added the comment: Thanks for looking into it! I'm glad that issue will be fixed, as at least one website was actually recommending using .jumpahead(i) for i in 1..100 for independent seed. I suspect in my use case I'll want to continue my previous methods; I work with stoc

[issue9827] Clarify LogRecord documentation

2010-09-10 Thread Chris Leary
New submission from Chris Leary : I tried to clear this section up a bit in light of the confusion here: http://stackoverflow.com/q/3687864/3594 Not sure if it applies to 3k trunk. First documentation patch, be sure to lmk what I'm doing wrong! :-) -- assignee: d...@python components:

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: r84701 fixes supports_unicode_filenames's definition in Python 3.2 (and r84702 in Python 3.1): os.listdir(str) now always return unicode filenames (including non-ascii characters). -- ___ Python tracker

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: > Maybe os.path.supports_unicode_filenames should be deprecated. > The doc currently says: > "True if arbitrary Unicode strings can be used as file names > (within limitations imposed by the file system), and if os.listdir() > returns Unicode strings for a Unic

[issue9827] Clarify LogRecord documentation

2010-09-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: d...@python -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list m

[issue9408] curses: Link against libncursesw instead of libncurses

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: $ ldd $(/usr/bin/python3.1 -c 'import readline; print(readline.__file__)')|grep curses libncurses.so.5 => /lib/libncurses.so.5 (0xb7537000) $ ldd /lib/libreadline.so.6|grep curses libncurses.so.5 => /lib/libncurses.so.5 (0xb76a6000) > Actually

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r84704 in Python 3.2. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1466065] base64 module ignores non-alphabet characters

2010-09-10 Thread R. David Murray
R. David Murray added the comment: If you could update it that would be great. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue9608] Re-phrase best way of using exceptions in doanddont.rst

2010-09-10 Thread R. David Murray
R. David Murray added the comment: Here is another edit pass, incorporating Éric's suggestions and adding some additional tweaks. In particular, I eliminated the anti-pattern of catching (IOError, OSError) in one of the earlier examples in favor of the correct EnvironmentError, and also impr

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: How about TESTFN_UNICODE (test_unicode_file) issue? Should I reopen this entry or invalid? -- ___ Python tracker ___

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-10 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : When I ran the code in #6869 (msg95444) on py3k, I noticed Fatal Python error occurs. # Actually, I need to copy created executable file into # PC/VC6 directoly where python32_d.dll exists. Otherwise, # the error "encoding.utf-8 was not found" occured even

[issue9829] Unexpected Fraction.from_float() Behavior

2010-09-10 Thread bsidhom
New submission from bsidhom : The Fractions.from_float() call returns an incorrect value when run on certain numbers. Some test runs have been listed below. Note that this problem does not exist when the same float is converted to a string and then passed to the standard Fraction() constructor

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Garrett Cooper
Garrett Cooper added the comment: That definitely fixes detection for FreeBSD CURRENT with 2.7 and py3k for me. I'm looking into providing some unit-tests, but the problem is that whether or not chflags functions on the underlying filesystem is problematic. For instance, it won't function on

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Ned Deily
Ned Deily added the comment: Additional tests would be great. It is probably reasonable to make some simplifying assumptions about which file systems the test directory would be run on. I'm guessing other similar file system function tests are not bulletproof on all potential file system ty

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, msg92444 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: > How about TESTFN_UNICODE (test_unicode_file) issue? File "e:\python-dev\py3k\lib\test\test_unicode_file.py", line 12, in TESTFN_UNICODE.encode(TESTFN_ENCODING) UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid characte

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file18845/unicode_file.patch ___ Python tracker ___ ___ Python-bugs-list mailing

<    1   2