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.
_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-xboard