On Thu, Feb 21, 2008 at 10:46:22PM +0100, Eike Nicklas wrote: > Hi Uwe, > > upstream changed the way of displaying empty fields in the full year > calendar in svn and asked whether that changed the messed up behaviour > you're seeing. I created a source package of the current svn snapshot > and uploaded it to mentors.debian.net: > > - URL: http://mentors.debian.net/debian/pool/main/o/osmo > - Source repository: deb-src http://mentors.debian.net/debian unstable main > contrib non-free > - dget http://mentors.debian.net/debian/pool/main/o/osmo/osmo_0.2.0+svn-1.dsc > > 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. > 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. Uwe -- MMK GmbH, Fleyer Str. 196, 58097 Hagen [EMAIL PROTECTED] Tel: 02331 840446 Fax: 02331 843920
signature.asc
Description: Digital signature