[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-XBoard] Infinite recursion

From: Byrial Jensen
Subject: Re: [Bug-XBoard] Infinite recursion
Date: Wed, 11 Apr 2012 12:07:52 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120402 Thunderbird/11.0.1

Den 11-04-2012 12:06, h.g. muller skrev:

However if start xboard in my normal Danish locale the error error does not come up, and the engine setting menu item are enabled. If I click on "Engine #1 settings", xboard will crash.
But the point is that the behavoir depends on the locale in a way it shouldn't.

I guess the problem is that XBoard (as described in the protocol specs) triggers on receiving a message containing "No such file" from the engine process, and that the engine probably sent a translated version of that message. That is a bit hard to fix. We could translate the system standard error messages it compares to in backend.c. But that is tricky; they really would have to be translated to the exact messages that the system in that locale would produce. We could of course let XBoard request the messages by error number in its own locale, and use those in the comparison. But also that will not always do what we need, because you could be running the engine on a machine with a different locale as wher XBoard is running.

If Xboard is dependent on untranslated error messages from libc, it should run the engines in the C locale. It can be done by calling putenv("LANGUAGE=C") in the child proces before the exec() call.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]