[sldev] [VWR] bone without position - on PowerPC

Robin Cornelius robin.cornelius at gmail.com
Mon Mar 10 15:04:28 PDT 2008


Alissa Sabre wrote:
>> I've opened VWR-5056 on this issue. What i don't
>> understand is why this has not been seen more widely before?
> 
> Hmm...
> 
> I believe the Linux viewer already has a workaround for this issue.
> Two calls to setlocale() before and after a call to
> gtk_main_iteration() in LLWindowSDL::gatherInput() should does a
> trick.  SL viewer doesn't call setlocale(LC_ALL, ""), so the major
> parts of the viewer is run under the C locale.
> 
> I tested the Linden's Linux binary for 1.19.0 RC2
> (SecondLife_i686_1_19_0_2_RELEASECANDIDATE.tar.bz2) under de_DE.UTF-8
> locale.  It worked fine.  I run it on Fedora 8 x86.
> 
> I'm not sure why your Debian binary causes a problem even under a
> conflicting locale.  Have you changed something?

I've just seen some issues on the forum where users on the windlight
client have had to force LANG="C" in order to start the 1.19.1 RC so
i've reopened VWR-5056 as i am sure there is *something* not quite right
here still.

I added a load of debug lines at every setlocale() call throughout the
viewer and it did indeed end up reverting to the users locale right at
the critical moment when the xml files are parsed. It seemed there was
an uneven number of setlocales() as this is being treated as a push/pop
operation this breaks.

I've attached a patch to the JIRA that just does an additional push/pop
of the locale around the critical xml parsing calls, and again forces C
locale during the xml parse. It stops the crashes for my viewer and i
assume it will have effects on the stock viewer, for those that are
effected by this.

Now i'm not sure why this is not more widely seen at all. Maybe its
distro specific too for some reason. But something with the locale
handing code is broken somewhere.

Robin


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20080310/27c5be75/signature-0001.pgp


More information about the SLDev mailing list