/etc/environment is parsed incorrectly

Bug #141407 reported by ntz
4
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

I use the /etc/environment file to set locale variables, and the lines are:
LC_COLLATE="fi_FI.UTF-8"
LC_MONETARY=fi_FI.UTF-8

If there are spaces after the lines, the lines that have the variable
enclosed in quotation marks are parsed incorrectly and in "locale" output
they show as:
LC_COLLATE=fi_FI.UTF-8"
LC_MONETARY=fi_FI.UTF-8

which then causes some programs to fail (at least the quoted format, because it has only one quote left). There is no manpage for /etc/environment that defines the right syntax and the spaces after the end of line are not the easiest thing to notice. I don't know which program parses the environment file, but this should be fixed.

I'm using Ubuntu Feisty Fawn 7.04 and bash as a shell.

Revision history for this message
Andres Mujica (andres.mujica) wrote :

Thanks for your report this is a duplicate of Bug #116438 please make further comments there and don't hesitate on report new bugs

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.