Mailinglist Archive: opensuse-buildservice (312 mails)

< Previous Next >
Re: [opensuse-buildservice] osc umlaut problem
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Fri, 3 Jul 2009 17:40:59 +0200
  • Message-id: <20090703154059.GB3504@xxxxxxxxxxxxxxxxxxxxxx>
On 2009-07-03 13:24:59 +0200, Susanne Oberhauser wrote:
Michal Čihař <michal@xxxxxxxxx> writes:

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 :-).

ok, that means #2 for now, right?

Hmm IMHO this is just a workaround which doesn't really fix the problem. The
problem is that our implementation of __str__() is wrong in the sense of the
return "type". We need to ensure that everything __str__() returns can be
converted to the str type. For all other cases we should use __unicode__()
but then there might be cases where "print obj" doesn't print out the expected
result because print doesn't use __unicode__()...
Actually my main "concern" with your workaround is that it will break other
applications which use osc and rely on the correctness of __str__().
This all seems to be quite complicated:)

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups