Encoding not set correctly when launched via "Run program"

Bug #403545 reported by Dmitriy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Medium
Chris Jones

Bug Description

When I launch terminator using "Run program" (Alt+F2) from XFCE, the encoding is not set at all (no radio-button is selected in the menu), and I have to set it manually. The error doesn't occur if I launch terminator from a terminal. I don't know if it's relevant, but XFCE is launched from SLiM login manager.

Related branches

Revision history for this message
Chris Jones (cmsj) wrote :

This is really interesting, it suggests that VTE is coming up in an encoding that's not in our list (which is supposed to be complete). Are you comfortable with patching terminator with some debug info so we can track this down?

Changed in terminator:
importance: Undecided → Medium
milestone: none → 1.0-beta
status: New → Incomplete
Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote : Re: [Bug 403545] Re: Encoding not set correctly when launched via "Run program"

Sure, I'm comfortable patching terminator if you tell me whith what to
patch it. The thing is this happens only when launching from "Run
command", launching a new one from any terminal works fine. I'm
guessing some environment settings are missing during launch, but I
have no idea which.

On Sun, Aug 2, 2009 at 12:24 PM, Chris Jones<email address hidden> wrote:
> This is really interesting, it suggests that VTE is coming up in an
> encoding that's not in our list (which is supposed to be complete). Are
> you comfortable with patching terminator with some debug info so we can
> track this down?
>
> ** Changed in: terminator
>   Importance: Undecided => Medium
>
> ** Changed in: terminator
>       Status: New => Incomplete
>
> ** Changed in: terminator
>    Milestone: None => 1.0-beta
>
> --
> Encoding not set correctly when launched via "Run program"
> https://bugs.launchpad.net/bugs/403545
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Terminator: Incomplete
>
> Bug description:
> When I launch terminator using "Run program" (Alt+F2) from XFCE, the encoding is not set at all (no radio-button is selected in the menu), and I have to set it manually. The error doesn't occur if I launch terminator from a terminal. I don't know if it's relevant, but XFCE is launched from SLiM login manager.
>

Revision history for this message
Chris Jones (cmsj) wrote :

The attached patch will put the current encoding into the encodings menu as the first item above UTF-8. Selecting it won't do anything useful, I'm just curious to know what it says :)

Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote :

The encoding it reports when I launch through "Run command" is ANSIX3.4-1968.

On Sun, Aug 2, 2009 at 4:19 PM, Chris Jones<email address hidden> wrote:
> The attached patch will put the current encoding into the encodings menu
> as the first item above UTF-8. Selecting it won't do anything useful,
> I'm just curious to know what it says :)
>
> ** Attachment added: "encoding.diff"
>   http://launchpadlibrarian.net/29810851/encoding.diff
>
> --
> Encoding not set correctly when launched via "Run program"
> https://bugs.launchpad.net/bugs/403545
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Terminator: Incomplete
>
> Bug description:
> When I launch terminator using "Run program" (Alt+F2) from XFCE, the encoding is not set at all (no radio-button is selected in the menu), and I have to set it manually. The error doesn't occur if I launch terminator from a terminal. I don't know if it's relevant, but XFCE is launched from SLiM login manager.
>

Revision history for this message
Chris Jones (cmsj) wrote :

Great thanks, that should help a lot in figuring this out

Revision history for this message
Chris Jones (cmsj) wrote :

Dmitriy: In one of the terminals that's using the ANSIX3.4-1968 encoding, what is $LANG set to?
(if there's nothing secret in it, the entire output of "export" might be useful to see)

Revision history for this message
Chris Jones (cmsj) wrote :

I'm also curious about what happens if you launch gnome-terminal in the same way, since that doesn't explicitly support that encoding either.

Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote :

Here's select output from export:
declare -x COLORTERM="gnome-terminal"
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTCONTROL="erasedups"
declare -x HISTSIZE="1000"
declare -x HOME="/home/dmitriy"
declare -x INPUTRC="/etc/inputrc"
declare -x LANG="en_US.utf8"
declare -x LC_COLLATE="C"
declare -x SHELL="/bin/bash"
declare -x TERM="xterm"
declare -x USER="dmitriy"

Here's the output of locale in case it helps:
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

As for gnome-terminal (which I had never used up to this point), it
indeed defaults to "Current locale (ANSIX3.4-1968)".

Best,
Dmitriy

On Mon, Aug 3, 2009 at 3:33 AM, Chris Jones<email address hidden> wrote:
> I'm also curious about what happens if you launch gnome-terminal in the
> same way, since that doesn't explicitly support that encoding either.
>
> --
> Encoding not set correctly when launched via "Run program"
> https://bugs.launchpad.net/bugs/403545
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Terminator: Incomplete
>
> Bug description:
> When I launch terminator using "Run program" (Alt+F2) from XFCE, the encoding is not set at all (no radio-button is selected in the menu), and I have to set it manually. The error doesn't occur if I launch terminator from a terminal. I don't know if it's relevant, but XFCE is launched from SLiM login manager.
>

Revision history for this message
Chris Jones (cmsj) wrote :

Excellent, thanks.

Could you try the attached patch? It should inject the current encoding in the same way that gnome-terminal does.
Quite why the encoding is being set as that, I don't know, but it seems like a bug/feature in XFCE.

Changed in terminator:
assignee: nobody → Chris Jones (cmsj)
status: Incomplete → In Progress
Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote :

It does exactly what you said it would, but it's not really a solution
I was hoping for. My settings (in ~/.config/terminator/config) specify
the encoding to be UTF-8. I would prefer this setting to override the
default ANSI...

Thanks.
Dmitriy

On Mon, Aug 3, 2009 at 4:27 PM, Chris Jones<email address hidden> wrote:
> Excellent, thanks.
>
> Could you try the attached patch? It should inject the current encoding in the same way that gnome-terminal does.
> Quite why the encoding is being set as that, I don't know, but it seems like a bug/feature in XFCE.
>
> ** Attachment added: "encoding.diff"
>   http://launchpadlibrarian.net/29840421/encoding.diff
>
> ** Changed in: terminator
>       Status: Incomplete => In Progress
>
> ** Changed in: terminator
>     Assignee: (unassigned) => Chris Jones (cmsj)
>
> --
> Encoding not set correctly when launched via "Run program"
> https://bugs.launchpad.net/bugs/403545
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Terminator: In Progress
>
> Bug description:
> When I launch terminator using "Run program" (Alt+F2) from XFCE, the encoding is not set at all (no radio-button is selected in the menu), and I have to set it manually. The error doesn't occur if I launch terminator from a terminal. I don't know if it's relevant, but XFCE is launched from SLiM login manager.
>

Revision history for this message
Chris Jones (cmsj) wrote :

I think I have now fixed this, it's committed in trunk as revision 774, but I'll attach a patch in case it's helpful. You'll want to remove all the other patches first.

Changed in terminator:
status: In Progress → Fix Committed
Revision history for this message
Chris Jones (cmsj) wrote :
Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote :

Trunk is easier for me, and it has indeed fixed the bug perfectly. I
discovered a different problem connected to gnome-terminal, but I'll
file it now as a separate bug.

Thanks a ton for your help.
Dmitriy

On Mon, Aug 3, 2009 at 6:57 PM, Launchpad Bug
Tracker<email address hidden> wrote:
> ** Branch linked: lp:terminator
>
> --
> Encoding not set correctly when launched via "Run program"
> https://bugs.launchpad.net/bugs/403545
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Terminator: Fix Committed
>
> Bug description:
> When I launch terminator using "Run program" (Alt+F2) from XFCE, the encoding is not set at all (no radio-button is selected in the menu), and I have to set it manually. The error doesn't occur if I launch terminator from a terminal. I don't know if it's relevant, but XFCE is launched from SLiM login manager.
>

Chris Jones (cmsj)
Changed in terminator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.