#614 closed defect (fixed)
fail gracefully if LANG isn't set
Reported by: | sascha_silbe | Owned by: | sascha_silbe |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | Sugar | Version: | Git as of bugdate |
Severity: | Minor | Keywords: | r+ |
Cc: | tomeu | Distribution/OS: | Unspecified |
Bug Status: | Assigned |
Description
Normally, LANG will be set by the login scripts. But if it isn't set, several parts of Sugar currently fail (tracebacks).
Since Sugar provides its own language chooser anyway, it makes sense to handle this more gracefully and set up locale variables (including LANG) accordingly early on startup. Another option would be to fix all occurences of direct uses of LANG inside Glucose to use the Control Panel settings instead.
Attachments (1)
Change History (7)
comment:1 Changed 14 years ago by tomeu
- Milestone changed from Unspecified by Release Team to 0.86
comment:2 Changed 14 years ago by homunq
- Keywords sugar-love added
Changed 13 years ago by sascha_silbe
comment:3 follow-up: ↓ 4 Changed 13 years ago by sascha_silbe
- Bug Status changed from Unconfirmed to Assigned
- Cc tomeu added
- Keywords r? added; sugar-love removed
- Owner changed from tomeu to sascha_silbe
- Status changed from new to accepted
The attached patch sets the default language (to en_US.utf8) in sugar (shell script) prior to sourcing ~/.i18n.
comment:4 in reply to: ↑ 3 Changed 13 years ago by tomeu
- Keywords r+ added; r? removed
Replying to sascha_silbe:
The attached patch sets the default language (to en_US.utf8) in sugar (shell script) prior to sourcing ~/.i18n.
Excellent, thanks!
comment:5 Changed 13 years ago by sascha_silbe
- Resolution set to fixed
- Status changed from accepted to closed
Pushed as be156e18869ef888ade1a6d2268e49ff97742ddf, thanks!
set default language