Project

General

Profile

Feature #6001

Fix locales format based on wrong assumption

Added by Tails about 6 years ago. Updated 11 months ago.

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

0%

Feature Branch:
Type of work:
Code
Blueprint:
Starter:
No
Affected tool:

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.


Related issues

Related to Tails - Feature #6142: Factor out $LANG parsing Confirmed

History

#1 Updated by BitingBird about 5 years ago

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

#2 Updated by intrigeri about 5 years ago

#3 Updated by BitingBird over 4 years ago

  • Category set to Internationalization

#4 Updated by intrigeri over 1 year ago

I still see #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 u 11 months ago

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

Also available in: Atom PDF