Feature #6001

Fix locales format based on wrong assumption

Added by Tails 2013-07-18 07:49:15 . Updated 2018-08-19 08:51:50 .

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Internationalization
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
0
Affected tool:
Deliverable for:

Description

A few places in Tails (git grep LANG) assume everything that can be in $LANG starts with the xx_XX form, which is, unfortunately, not true: e.g. fil_PH.

Instead of relying home-made shell trickery and re-inventing the wheel we should consider using some existing library or tool for this, or we should read the standards so we can prevent buggy edge cases.


Subtasks


Related issues

Related to Tails - Feature #6142: Factor out $LANG parsing Confirmed
Related to Tails - Feature #17002: Do stats on the languages in which people start Tails Resolved
Has duplicate Tails - Feature #17003: tails-security-check doesn't support language codes with 3 characters Duplicate

History

#1 Updated by BitingBird 2014-06-09 11:17:53

  • Subject changed from fix locales form wrong assumption to Fix locales form wrong assumption
  • Description updated
  • Starter set to No

#2 Updated by intrigeri 2014-06-21 14:24:21

#3 Updated by BitingBird 2015-01-02 20:04:30

  • Category set to Internationalization

#4 Updated by intrigeri 2018-01-19 16:20:13

I still see Feature #6001 at least in config/chroot_local-includes/usr/local/bin/tails-security-check and config/chroot_local-includes/usr/local/bin/tails-documentation.

#5 Updated by Anonymous 2018-08-19 08:51:50

  • Subject changed from Fix locales form wrong assumption to Fix locales format based on wrong assumption

#6 Updated by intrigeri 2019-08-29 07:22:50

  • has duplicate Feature #17003: tails-security-check doesn't support language codes with 3 characters added

#7 Updated by intrigeri 2019-08-29 07:23:57

  • related to Feature #17002: Do stats on the languages in which people start Tails added