[gcompris-devel] gcompris-4.2 segmentation fault on startup. Fix. -Thanks!
Richard Boyce
boycer at u.washington.edu
Sat Dec 20 22:20:02 UTC 2003
Thanks all! Sorry that I made it a bit too complicated.
Coming from version 1.0, version 4.2 is has a come a long ways!
Richard
SashaK wrote:
>Hello,
>
>On my machine 'gcompris-4.2' crashes when my daughter starts it. This
>happens when env variables LANG, LC_MESSAGES and LC_ALL are not exported
>(as in my case). This small patch will fix it.
>
>Thanks for great game - my four year old daughter is happy.
>
>Sasha.
>
>
>------------------------------------------------------------------------
>
>diff -wru gcompris-4.2_orig/src/gcompris/properties.c gcompris-4.2/src/gcompris/properties.c
>--- gcompris-4.2_orig/src/gcompris/properties.c 2003-11-25 01:03:55.000000000 +0200
>+++ gcompris-4.2/src/gcompris/properties.c 2003-12-20 20:26:08.000000000 +0200
>@@ -61,7 +61,7 @@
> if(locale == NULL)
> locale = getenv("LANG");
>
>- if (!strcmp(locale, "C"))
>+ if (locale != NULL && !strcmp(locale, "C"))
> {
> tmp->locale = gnome_config_get_string ("/gcompris/Preferences/locale=en_US.UTF-8");
> }
>
>
--
Richard Boyce
NLM Predoctoral Fellow
Division of Biomedical and Health Informatics
University of Washington
boycer at u.washington.edu
More information about the Gcompris-devel
mailing list