Bug #1782
closednon-English locales causes application crashes on x86-64
0%
Description
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