Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue3410] platform.version() don't work as expected in Vista in portuguese

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 4, 2009, 4:05 AM

Post #1 of 4 (310 views)
Permalink
[issue3410] platform.version() don't work as expected in Vista in portuguese

Ezio Melotti <ezio.melotti [at] gmail> added the comment:

I tried platform.version() on a non-English Vista and XP and I got
'32bit' for Vista and '5.1.2600' for XP. With platform.platform() I got
'Windows-32bit-SP2' on Vista and 'Windows-XP-5.1.2600-SP2' on XP.

----------
nosy: +ezio.melotti
priority: -> normal
versions: +Python 2.7 -Python 2.5

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3410>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 6, 2009, 4:31 AM

Post #2 of 4 (266 views)
Permalink
[issue3410] platform.version() don't work as expected in Vista in portuguese [In reply to]

Felipe Portella <felipe [at] portella> added the comment:

The same happens in Portuguese version ... the regex fails because ver
returns "Versão" ...

[]'s

On Mon, Jul 6, 2009 at 7:54 AM, Ezio Melotti <report [at] bugs> wrote:

>
> Ezio Melotti <ezio.melotti [at] gmail> added the comment:
>
> Won't that fail with Windows versions in Japanese, Chinese, Arab and
> similar?
> If 'Version' is translated in all the languages as a single word and
> it's between whitespaces (or even between a [ and a space), \S+ should
> be safe enough, otherwise \w+ with the re.U flag should work.
>
> ----------
>
> _______________________________________
> Python tracker <report [at] bugs>
> <http://bugs.python.org/issue3410>
> _______________________________________
>

----------
title: platform.version() don't work as expected in Vista in portuguese -> platform.version() don't work as expected in Vista in portuguese
Added file: http://bugs.python.org/file14457/unnamed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3410>
_______________________________________
Attachments: unnamed (1.25 KB)


report at bugs

Jul 6, 2009, 4:59 AM

Post #3 of 4 (266 views)
Permalink
[issue3410] platform.version() don't work as expected in Vista in portuguese [In reply to]

Ezio Melotti <ezio.melotti [at] gmail> added the comment:

According to Google Translate, in Vietnamese 'Version' is 'Phiên bản'.
If this is true both \S+ and \w+ will fail.
I also noticed a few more regex (namely _release_filename,
_lsb_release_version and _release_version) which contain the words
'version' and 'release' and may fail if these are translated.
I guess I'll have to check with some live cd (since these regex are used
for Linux apparently) and some other language to see if it works.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3410>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 13, 2009, 2:29 PM

Post #4 of 4 (257 views)
Permalink
[issue3410] platform.version() don't work as expected in Vista in portuguese [In reply to]

Marc-Andre Lemburg <mal [at] egenix> added the comment:

I've checked in patch r74005 to address the problem.

Could you check whether the current SVN version of platform.py works on
your Portuguese Windows version ?

Thanks.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3410>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.