After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777747 - reset should not modify the encoding
reset should not modify the encoding
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: vte-0-48
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-25 14:35 UTC by Egmont Koblinger
Modified: 2017-02-13 11:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Egmont Koblinger 2017-01-25 14:35:08 UTC
In bug 731208 (and a little bit in bug 732586) we agreed that escape sequences should not be able to modify the charset, the charset should be an API-only thing.

Alas, its implementation (which appeared in vte-0.40) is incomplete. Some "reset" escape sequences (at least "\ec" and "\e[!p") change the actual encoding to UTF-8, overriding what was set via the API (that is, via profile prefs / app menu).

They should leave the charset unaltered.

(Discovered in https://bugzilla.xfce.org/show_bug.cgi?id=13054#c7.)
Comment 1 Egmont Koblinger 2017-01-25 14:58:23 UTC
Same goes for the "Reset" and "Reset and Clear" menu entries.
Comment 2 Christian Persch 2017-01-25 19:45:09 UTC
Should be just a matter of removing

        /* Reset the encoding. */
        set_encoding(nullptr /* UTF-8 */);
        g_assert_cmpstr(m_encoding, ==, "UTF-8");

from VteTerminalPrivate::reset(), right?
Comment 3 Egmont Koblinger 2017-01-25 21:27:33 UTC
Hopefully.

Will take a closer look at some point in the not too distant future.
Comment 4 Egmont Koblinger 2017-01-26 21:54:33 UTC
I've tried it out and indeed this seems to be the correct fix.
Comment 5 Igor 2017-02-12 14:15:46 UTC
Hi Egmont, Christian,

Any plans on fixing this? It's started bothering users: https://bugzilla.xfce.org/show_bug.cgi?id=13351
Comment 6 Egmont Koblinger 2017-02-12 18:40:49 UTC
Igor - thanks for the bugreports and the ping :)
Christian - thanks for the fix :)
Comment 7 Igor 2017-02-12 18:52:10 UTC
Egmont, Christian,

BTW, I'm not able to build vte from git master - autogen.sh fails with
bindings/Makefile.am:7: error: ENABLE_VAPIGEN does not appear in AM_CONDITIONAL

I guess it got broken with commit f0691d3e847058c181280670b477e61142a10c50.
Comment 8 Egmont Koblinger 2017-02-12 18:58:44 UTC
Works for me on yakkety.
Comment 9 Igor 2017-02-12 19:02:05 UTC
OK, it seems I have to install vala. Thanks!
Comment 10 Igor 2017-02-13 06:58:38 UTC
Christian,

Your commit 2d04ed4c5de05937022940c1d5ef0d4465b47595 helped partially: build process now goes further but then still fails with
configure: error: Vala requested but M4 macros not installed.
Comment 11 Christian Persch′ 2017-02-13 10:55:29 UTC
That's expected. You'll need to pass --disable-vala since vala is enabled by default; the build fix only allows autoreconf to work without the macros installed. I'll improve the error message to hint to --disable-vala.
Comment 12 Igor 2017-02-13 11:03:51 UTC
OK, thanks.