Should start up with non-UTF-8
@egmontkob
Submitted by Egmont Koblinger Link to original bug (#732127)
Description
Created attachment 279068 Fix proof of concept
gnome-terminal-server refuses to start up with non-UTF-8 locales. This causes problems with those users who are still stuck with crappy legacy charsets. Yeah those charsets still such and everyone should've switched already, but g-t shouldn't be the first application forcing it.
gnome-terminal-server hardly uses the locale for anything. Maybe for dbus messages, for fontconfig settings etc. It should either live happily with a non-UTF-8 locale, or (try to) set a UTF-8 even if the environment says otherwise.
I attach a patch that tries to set a UTF-8 locale internally even if the locale says otherwise. It tries to fall back to the current locale with a .UTF-8 modifier, followed by C.UTF-8(*) and en_US.UTF-8, then gives up.
(*) Is it officially part of glibc by now? Or added by eglibc or Ubuntu?
Patch 279068, "Fix proof of concept":
gnome-terminal-non-utf8.patch
Version: 3.13.x