Feature #17003

tails-security-check doesn't support language codes with 3 characters

Added by sajolida 2019-08-28 18:10:06 . Updated 2019-08-29 07:23:44 .

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

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

Line 60 of tails-security-check seems to assume that the language part of a locale code is 3 characters long:

    my ($code) = ($ENV{LANG} =~ m/([a-z]{2}).*/);

Some language codes are 3 characters long. For example, in /usr/share/locale/:

  • ace
  • ach
  • ang
  • anp
  • ast
  • bal
  • bar
  • brx
  • byn
  • chr
  • etc.

Subtasks


Related issues

Related to Tails - Feature #17002: Do stats on the languages in which people start Tails Resolved
Is duplicate of Tails - Feature #6001: Fix locales format based on wrong assumption Confirmed

History

#1 Updated by sajolida 2019-08-28 18:28:48

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

#2 Updated by intrigeri 2019-08-29 07:22:49

  • is duplicate of Feature #6001: Fix locales format based on wrong assumption added

#3 Updated by intrigeri 2019-08-29 07:23:44

  • Status changed from New to Duplicate