#1110661 debian-live: installing trixie lxde live image in non-Thai locale results in non-functional Thai X Terminal

#1110661#5
Date:
2025-08-09 17:48:09 UTC
From:
To:
Found during 13.0 release testing (originally by sqrt on #debian-cd, but
I can reproduce it).

Steps to reproduce
==================

* Boot debian-live-13.0.0-amd64-lxde.iso
* Install using Calamares, selecting a non-Thai locale
  (I used British English, en_GB)
* Reboot to the installed system
* main menu → System
* If "Thai X Terminal" (the xiterm+thai package) appears, launch it
* try to type some command, e.g. grep --help

Expected result
===============

* Either:
    - the Thai X Terminal is removed or not installed (because I chose a
      non-Thai locale, and it is presumably only interesting to Thai
      language users) and doesn't appear in the menu
  or:
    - the Thai X Terminal is installed
    - commands can be run in it

Actual result
=============

* xiterm+thai is installed
* I see a bunch of messages in the terminal similar to:
  -bash: warning: setlocale: LC_CTYPE: cannot change locale (th_TH): No such file or directory
* when I press keys, no text appears at the prompt

Other information
=================

When I installed from the *GNOME* live image (which installs
locales-all, not just locales), xiterm+thai does work. However, it
doesn't seem practically useful to anyone who cannot read Thai: it
appears to be hard-coded to set LANG=th_TH, so for example `grep --help`
gives me help text partially translated into Thai.

If ordinary terminal emulators like gnome-terminal and LXTerminal are
suitable for Thai-language users now that we have Unicode everywhere,
then I'd suggest just using those terminals, rather than having a
special Thai terminal preinstalled.

Or, if xiterm+thai is necessary for Thai-language users, then it's OK
for it to be in the live image, but I think the live installation
process should automatically remove it whenever it installs a system
that is configured for a non-Thai language.

    smcv

#1110661#12
Date:
2026-02-26 23:24:39 UTC
From:
To:
Theppitak and Neutron,

Could you help us with this bug? Does it still make sense for
task-thai-desktop to recommend xiterm+thai?

According to git, that relationship was first added in 2003 with
https://salsa.debian.org/installer-team/tasksel/-/commit/e6d3637a

I am guessing that all Thai related packages were included then. The
question now is whether xiterm+thai should be installed for everyone
using Debian with the Thai language.

Thank you,
Jeremy Bícha

#1110661#17
Date:
2026-02-28 22:04:14 UTC
From:
To:
I have proposed
https://salsa.debian.org/installer-team/tasksel/-/merge_requests/55

I think it makes sense for this bug to remain open against live-tasks
because I want to remove xiterm+thai from all Debian Live images for
future Debian 13 point releases. The most minimal way to do that is by
updating live-tasks rather than tasksel. (Technically, it is possible
to make adjustments to the live images without doing a stable update
of live-tasks but I think there are benefits to doing it in live-tasks
directly.)

Thank you,
Jeremy Bícha