Opened 12 years ago

Closed 11 years ago

Last modified 8 years ago

#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)

0001-set-default-language-614.patch (657 bytes) - added by sascha_silbe 11 years ago.
set default language

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by tomeu

  • Milestone changed from Unspecified by Release Team to 0.86

comment:2 Changed 12 years ago by homunq

  • Keywords sugar-love added

Changed 11 years ago by sascha_silbe

set default language

comment:3 follow-up: Changed 11 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 11 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 11 years ago by sascha_silbe

  • Resolution set to fixed
  • Status changed from accepted to closed

comment:6 Changed 8 years ago by dnarvaez

  • Milestone 0.86 deleted

Milestone 0.86 deleted

Note: See TracTickets for help on using tickets.