[issue3061] time.strftime() always decodes result with UTF-8

2010-11-23 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-30 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Committed as r73043, r73044

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Here is a patch that resolves this issue for systems supporting
wcsftime, which should be the majority of systems on which the problem
can occur.

--
keywords: +patch
priority: high - release blocker
Added file: http://bugs.python.org/file14113/wcsftime.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

The patch looks good. (Can this be tested?)

--
nosy: +benjamin.peterson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

It's difficult to test. The only test I can think of is one that gets
skipped if the fr_FR (say) locale is not configured. The test would then
try to find out what the name of February is, which should return a
string (see issue5562).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
versions: +Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Can you use test_support.run_with_locale?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Benjamin Peterson wrote:
 Benjamin Peterson benja...@python.org added the comment:
 
 Can you use test_support.run_with_locale?

I don't think so. IIUC, run_with_locale will fallback to not
setting the locale if none of the listed locales actually works
on the system. This would be undesirable for this issue - it
would be a proper test only if you have a locale for which
strftime currently fails (i.e. returns non-ASCII characters,
and doesn't use UTF-8).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

2009/5/29 Martin v. Löwis rep...@bugs.python.org:

 Martin v. Löwis mar...@v.loewis.de added the comment:

 Benjamin Peterson wrote:
 Benjamin Peterson benja...@python.org added the comment:

 Can you use test_support.run_with_locale?

 I don't think so. IIUC, run_with_locale will fallback to not
 setting the locale if none of the listed locales actually works
 on the system. This would be undesirable for this issue - it
 would be a proper test only if you have a locale for which
 strftime currently fails (i.e. returns non-ASCII characters,
 and doesn't use UTF-8).

Well, I think you should just apply the patch then.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-12 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-05 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Is it possible to find out what specific encoding is being used?

In most cases, nl_langinfo(CODESET) would be the right choice, but that
depends on the LC_CTYPE category. If available, wcsftime should be used.

In any case, I think issue5903 and issue5562 are related. We should
close some of them as duplicates.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-02 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:

As C99 section 7.23.3.5 states:

Each conversion specifier is replaced by appropriate characters as
described in the following list. The appropriate characters are
determined using the LC_TIME category of the current locale and by the
values of zero or more members of the broken-down time structure pointed
to by timeptr, as specified in brackets in the description.

--
nosy: +asmodai

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3061
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com