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

Felipe Portella report at bugs.python.org
Mon Jul 6 13:31:39 CEST 2009


Felipe Portella <felipe at portella.com.br> 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.python.org> wrote:

>
> Ezio Melotti <ezio.melotti at gmail.com> 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.python.org>
> <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.python.org>
<http://bugs.python.org/issue3410>
_______________________________________
-------------- next part --------------
The same happens in Portuguese version ... the regex fails because ver returns &quot;Versão&quot; ...<br><br>[]&#39;s<br><br><div class="gmail_quote">On Mon, Jul 6, 2009 at 7:54 AM, Ezio Melotti <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
Ezio Melotti &lt;<a href="mailto:ezio.melotti at gmail.com">ezio.melotti at gmail.com</a>&gt; added the comment:<br>
<br>
</div>Won&#39;t that fail with Windows versions in Japanese, Chinese, Arab and<br>
similar?<br>
If &#39;Version&#39; is translated in all the languages as a single word and<br>
it&#39;s between whitespaces (or even between a [ and a space), \S+ should<br>
be safe enough, otherwise \w+ with the re.U flag should work.<br>
<br>
----------<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue3410" target="_blank">http://bugs.python.org/issue3410</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br>


More information about the Python-bugs-list mailing list