On Wed, Sep 12, 2001 at 07:53:11PM -0500, Andreas Jung wrote:
> I fixed the locale problem in the CVS (trunk and 2.4 branch). So the fix
> will be in the next 2.4 release.

Cool. I took a look at CVS now and noticed how I should have just taken out the
whole try/except block in my patch. As your comment there states, there is no
use in just importing locale in this case. 'strings.lowercase' works just as
well.

   Cheers, Leo

> ----- Original Message -----
> From: "Leonardo Rochael Almeida" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 18:36
> Subject: Re: [Zope-dev] fmt=structured-text doesn't work with accented chars
> 
> [...]
> 
> The patch below fix both my 'Script (Python)' and the parsing problem with
> StructuredText. I took the liberty of removing the spurious 'import string'.
> 
> 
> --- lib/python/StructuredText/STletters.py.orig Wed Sep 12 20:00:52 2001
> +++ lib/python/StructuredText/STletters.py Wed Sep 12 20:23:24 2001
> @@ -1,8 +1,8 @@
> -import string
> +
>  try:
>      del string
>      import locale
> -    locale.setlocale(locale.LC_ALL,"")
> +#    locale.setlocale(locale.LC_ALL,"")
>  except:
>      pass
> 
> 
> Is there anywhere else I should submit it?
> 
>    Cheers, Leo
> 
> PS: BTW, I'm still trying to figure out how to correctly set the locale on
> Windows, if anyone knows... :-)


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to