Can call setenv ("LANGUAGE", NULL) which corrupts the environment

Bug #861123 reported by Robert Ancell on 2011-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Indicator Date and Time
Fix Released
High
Ted Gould
Ubuntu Translations
High
Unassigned

Bug Description

In utils.c, T_() if LANGUAGE is not defined in the environment then g_setenv ("LANGUAGE", NULL) is called. There is a bug in libc with setting environment values to NULL and sets the environment to "LANGUAGE=" without the null character. This is causing Unity Greeter to mess up translations as getenv returns a random value for LANGUAGE (overriding LANG).

Related branches

summary: - Can call setenv ("LANGAUGE", NULL) which corrupts the environment
+ Can call setenv ("LANGUAGE", NULL) which corrupts the environment
Changed in indicator-datetime:
importance: Undecided → High
Robert Ancell (robert-ancell) wrote :
Changed in indicator-datetime:
assignee: nobody → Ted Gould (ted)
David Planella (dpm) on 2011-09-28
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → High
Ted Gould (ted) on 2011-09-29
Changed in indicator-datetime:
milestone: none → 0.3.0
Ted Gould (ted) on 2011-09-29
Changed in indicator-datetime:
status: New → Fix Committed
Ted Gould (ted) on 2011-09-29
Changed in indicator-datetime:
status: Fix Committed → Fix Released
Gabor Kelemen (kelemeng) on 2011-09-30
Changed in ubuntu-translations:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers