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

Bug #861123 reported by Robert Ancell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Indicator Date and Time
Fix Released
High
Ted Gould
Ubuntu Translations
Fix Released
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
Revision history for this message
Robert Ancell (robert-ancell) wrote :
Changed in indicator-datetime:
assignee: nobody → Ted Gould (ted)
David Planella (dpm)
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → High
Ted Gould (ted)
Changed in indicator-datetime:
milestone: none → 0.3.0
Ted Gould (ted)
Changed in indicator-datetime:
status: New → Fix Committed
Ted Gould (ted)
Changed in indicator-datetime:
status: Fix Committed → Fix Released
Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.