Hi Uwe,

On Fri, 22 Feb 2008 09:41:09 +0100 Uwe Steinmann wrote:

> On Thu, Feb 21, 2008 at 10:46:22PM +0100, Eike Nicklas wrote:

> > It would be great if you could have a quick look at it.
>
> Still no improvement, but I know how to fix it :-)
> 
> The reason lies in char being unsigned on powerpc by default unlike
> on other architectures. This seems to be true for gchar as well.
> display_calendar() in calendar_fullyear.c defines calendar_table, d, and
> tmpbuf to be gchar. In line 113 calendar_table is initialized to -1
> which is 255 on powerpc because gchar is unsigned. Later on there is
> also a comparision 'd < 0' which can never be true on powerpc.
> If I replace the gchar into 'signed char' it works.
> 

Ah, that makes sense, thanks a lot for your investigation! Forwarding
to upstream...

> > Note: #465182 is not yet known to be fixed, so you might have to start
> > osmo with "LANG=C LC_ALL=C osmo" or comment out line 1637 in calendar.c
> If I have some more time, I'll try to look into this as well.
> 

That'd be great if you find the time. You are the only osmo user on ppc
I know of :-)

Eike

Attachment: pgpPD6Zzoi8go.pgp
Description: PGP signature

Reply via email to