Commit 311d90af authored by Chris Wilson's avatar Chris Wilson Committed by Chris Wilson
Browse files

Bug 439384 – gnome-terminal on feisty crashes when giving wrong locale

2007-10-11  Chris Wilson  <chris@chris-wilson.co.uk>

    Bug 439384 – gnome-terminal on feisty crashes when giving wrong locale environment

    * src/vte.c (vte_terminal_set_encoding):
        Fallback to using UTF-8 as the locale encoding. This prevents
        subsequent crashes but may display gibberish in the output.


svn path=/trunk/; revision=1959
parent 33fe1ba1
2007-10-11 Chris Wilson <chris@chris-wilson.co.uk>
Bug 439384 gnome-terminal on feisty crashes when giving wrong locale environment
* src/vte.c (vte_terminal_set_encoding):
Fallback to using UTF-8 as the locale encoding. This prevents
subsequent crashes but may display gibberish in the output.
2007-10-05 Chris Wilson <chris@chris-wilson.co.uk>
Bug 483642 vte_terminal_feed crash when 8190 characters passed
......
......@@ -1839,7 +1839,8 @@ vte_terminal_set_encoding(VteTerminal *terminal, const char *codeset)
if (conv == VTE_INVALID_CONV) {
g_warning(_("Unable to convert characters from %s to %s."),
"UTF-8", codeset);
return;
/* fallback to no conversion */
conv = _vte_conv_open(codeset = "UTF-8", "UTF-8");
}
if (terminal->pvt->outgoing_conv != VTE_INVALID_CONV) {
_vte_conv_close(terminal->pvt->outgoing_conv);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment