From: SourceForge.net <no...@so...> - 2005-11-19 21:40:17
|
Bugs item #1227190, was opened at 2005-06-24 20:48 Message generated for change (Comment added) made by kevinkofler You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377680&aid=1227190&group_id=23169 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Works For Me Priority: 5 Submitted By: hibou (hiboo) Assigned to: Kevin Kofler (kevinkofler) Summary: Changing ROM Initial Comment: When I change of ROM, I have an window "GDB Error". The stack trace : syntax error in expression "1.0 / 1.0": extra tokens at end of expression while executing "expr 1.0 / $numpanes.0" (object "::.srcwin7.srcwin.container" method "::cyg::PanedWindow::_resizeArray" body line 44) invoked from within "_resizeArray" (object "::.srcwin7.srcwin.container" method "::cyg::PanedWindow::reset" body line 5) invoked from within "reset" (object "::.srcwin7.srcwin.container" method "::cyg::PanedWindow::_eventHandler" body line 18) invoked from within "::.srcwin7.srcwin.container _eventHandler 655 375" (in namespace inscope "::cyg::PanedWindow" script line 1) invoked from within "namespace inscope ::cyg::PanedWindow {::.srcwin7.srcwin.container _eventHandler 655 375}" (command bound to event)errorCode is NONE this is done with the last tiemu-tigcc-debugging (note that the command "tiemu --version" still give "TiEmu II - Version 2.00-rc3") ---------------------------------------------------------------------- >Comment By: Kevin Kofler (kevinkofler) Date: 2005-11-19 22:40 Message: Logged In: YES user_id=573515 I tried: export LC_ALL=fr_FR.UTF_8 tiemu (changing ROMs twice) export LC_ALL=fr_FR.UTF_8 export LC_NUMERIC=fr_FR.UTF_8 tiemu (changing ROMs twice) export LC_ALL=fr_FR@euro export LC_NUMERIC=fr_FR@euro tiemu (changing ROMs twice) No crash or error message. This is with: Fedora Core release 4 (Stentz) tiemu3-20050915-1 glibc-2.3.5-10.3 tcl-8.4.9-3 You must be running into a TCL or glibc bug. ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-07-01 21:57 Message: Logged In: YES user_id=573515 Does anyone have any idea of what could be causing this? I didn't find anything when I last looked at it, and I've been too busy to look any deeper the last few days. ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-26 14:22 Message: Logged In: YES user_id=573515 OK, so by now it is pretty obvious to me that something is resetting the setlocale settings to whatever was specified on the environment. The big question is now of course: WHAT's doing that? :-( ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-26 10:26 Message: Logged In: YES user_id=1280391 nothing works, outside or inside the loop, even if put a : setlocale(LC_ALL,"C"); ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 23:23 Message: Logged In: YES user_id=573515 And if you try to add a: setlocale(LC_ALL,""); before the setlocale(LC_NUMERIC,"C")? ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 23:15 Message: Logged In: YES user_id=1280391 neither ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 22:47 Message: Logged In: YES user_id=573515 Is it better like that? http://svn.tilp.info/cgi-bin/viewcvs.cgi/tiemu/branches/tigcc- debugging-branch/src/gui/main.c? root=tiemu&rev=1551&r1=1550&r2=1551 (I just moved the setlocale into the loop.) ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 22:16 Message: Logged In: YES user_id=1280391 No, sorry. Nothing change with the main.c patch LC_NUMERIC have to be set to C. ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 21:34 Message: Logged In: YES user_id=573515 Can you check please check if this fixes it? http://svn.tilp.info/cgi-bin/viewcvs.cgi/tiemu/branches/tigcc- debugging-branch/src/gui/main.c? root=tiemu&rev=1549&r1=1458&r2=1549 ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 18:54 Message: Logged In: YES user_id=573515 OK, so be it. This still leaves us with a TiEmu bug, because it shoudln't crash even if you've set LC_ALL. ;-) ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 18:39 Message: Logged In: YES user_id=1280391 well, I have read the LC_ALL overrides every LC_* which are overriding LANG. http://forums.gentoo.org/viewtopic-t-344830-highlight-locale.html#2464681 ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 18:22 Message: Logged In: YES user_id=573515 Huh? Shouldn't it be LC_NUMERIC which overrides LC_ALL? I think some code in TiEmu must be saving/restoring LC_ALL using the setlocale command, and this is what is resetting LC_NUMERIC. ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 18:09 Message: Logged In: YES user_id=1280391 stupid guy I am : I was setting the LC_NUMERIC while letting LC_ALL to my locale, which was overiding every change I can do. So, with only LC_NUMERIC="C", it works fine. ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 17:45 Message: Logged In: YES user_id=1280391 In fact, the ignoring of LC_NUMERIC can be a problem of my sytem. even if I update my global LC environment, the command "locale" give the old values. I had to reboot to fix it... I will see on the gentoo docs and forums to know more about it. ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 17:00 Message: Logged In: YES user_id=573515 I think this is the same issue. But I don't know why LC_NUMERIC is being ignored, whereas LC_ALL is honored. ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 16:57 Message: Logged In: YES user_id=1280391 No. There is still the error is LC_CTYPE="C" I don't know if it can help you, but when I try to scroll the window of the stack trace of the first error, I have another error : can't use non-numeric string as operand of "+" while executing "expr {$Priv(initPos) + $delta}" (procedure "tk::ScrollDrag" line 16) invoked from within "tk::ScrollDrag .bgerrorTrace.scroll 17 52 " (command bound to event)errorCode is NONE ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 16:08 Message: Logged In: YES user_id=573515 Interesting. Can you please try: export LC_CTYPE="C" ? (I'd like to avoid changing LC_ALL if a more finegrained setting is enough. But other than LC_CTYPE (and LC_NUMERIC, which you already tried), I don't see any setting which might be related to this.) ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 16:03 Message: Logged In: YES user_id=1280391 I am on my gentoo : hibou@i6000 ~ $ set | grep LC LC_ALL=fr_FR@euro hibou@i6000 ~ $ locale LANG= LC_CTYPE="fr_FR@euro" LC_NUMERIC="fr_FR@euro" LC_TIME="fr_FR@euro" LC_COLLATE="fr_FR@euro" LC_MONETARY="fr_FR@euro" LC_MESSAGES="fr_FR@euro" LC_PAPER="fr_FR@euro" LC_NAME="fr_FR@euro" LC_ADDRESS="fr_FR@euro" LC_TELEPHONE="fr_FR@euro" LC_MEASUREMENT="fr_FR@euro" LC_IDENTIFICATION="fr_FR@euro" LC_ALL=fr_FR@euro ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 15:57 Message: Logged In: YES user_id=573515 So this seems to be indeed a locale-related problem. Can you please run "set" and copy all the lines starting with "LC_" here? Also, what OS is this on? Is this on your Gentoo Linux installation or on something else? ---------------------------------------------------------------------- Comment By: hibou (hiboo) Date: 2005-06-25 15:35 Message: Logged In: YES user_id=1280391 What I have done : export LC_NUMERIC="C" tiemu ..... there is the error source /etc/profile export LC_ALL="C" tiemu ..... no error source /etc/profile export LANG="C" tiemu ..... there is the error ---------------------------------------------------------------------- Comment By: Kevin Kofler (kevinkofler) Date: 2005-06-25 15:24 Message: Logged In: YES user_id=573515 This works here. I need more information to be able to figure out what's happening. Maybe it is a problem with floats not being parsed properly? Please try: export LC_NUMERIC="C" and/or export LC_ALL="C" and/or export LANG="C" and tell me if that fixes it. (If so, I'll have the code change the setting, of course.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377680&aid=1227190&group_id=23169 |