non-English locales causes application crashes on x86-64

Francois Tigeot ftigeot at wolfpond.org
Mon Jun 14 14:36:37 PDT 2010


On DragonFly 2.6/x86-64, internationalized programs crash when the LANG
environment variable is set to a non-English value.

The following examples use psql from databases/postgresql84 but any other
program using translated text strings I have tested crashes in the same way:

[DragonFly/i386 and /x86-64, English locale]
$ LANG="" psql template1
psql (8.4.4)
Type "help" for help.
. ..

$ LANG="en_US.UTF-8" psql template1
psql (8.4.4)
. ..

[DragonFly/i386, non English locale]
$ LANG="fr_FR.UTF-8" psql template1
psql (8.4.4)
Saisissez « help » pour l'aide.
. ..

[DragonFly/x86-64, non English locale]
$ LANG="fr_FR.UTF-8" psql template1
[1]    40373 segmentation fault (core dumped)  LANG="fr_FR.UTF-8" psql template1


According to gdb, the crashes occur in libintl_dcigettext(), at dcigettext.c:669.
This file is a part of pkgsrc devel/gettext-lib

-- 
Francois Tigeot





More information about the Bugs mailing list