Mailinglist Archive: opensuse-buildservice (312 mails)

< Previous Next >
Re: [opensuse-buildservice] osc umlaut problem

Dne Fri, 03 Jul 2009 10:09:06 +0200
Susanne Oberhauser <froh@xxxxxxxxxx> napsal(a):

The sys.setdefaultencoding function is disabled after site
initialization on purpose:

The purpose isn't clear, though.

I've found somewhere, that this function was supposed to be temporary
until developers decide what should be default encoding. Unfortunately
it was not removed later and is still there what only increases

There is thre fixes to this:

1. we enable in the use of the locale setting

Problem with this is that you will most likely break applications which
do rely on default settings.

2. we work around the IMNSHO braindead disablement of

import sys, locale

3. We scatter explicit unicode awareness to every place we possibly
handle unicode strings strings.

I *strongly* opt for #1 or #2. #3 is just so plain inelegant, I refuse
to do that. It's like checking return codes after exceptions have been

4. Wait for python 3.0 :-).

Michal Čihař | |
< Previous Next >
List Navigation
Follow Ups