[Xfce4-commits] [apps/xfce4-terminal] 01/01: Set locale as vte encoding in case encoding is not set in prefs

noreply at xfce.org noreply at xfce.org
Mon Nov 28 10:15:06 CET 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 628c27ccc39c1835b4bc8b4736d189865cd14543
Author: Igor <f2404 at yandex.ru>
Date:   Mon Nov 28 12:13:46 2016 +0300

    Set locale as vte encoding in case encoding is not set in prefs
    
    This allows to change encoding by running 'LANG=charset xfce4-terminal'
---
 terminal/terminal-screen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index 1af1956..fd203f5 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -2217,6 +2217,8 @@ terminal_screen_set_encoding (TerminalScreen *screen,
                               const gchar    *charset)
 {
   terminal_return_if_fail (TERMINAL_IS_SCREEN (screen));
+  if (charset == NULL)
+    g_get_charset (&charset);
   if (!vte_terminal_set_encoding (VTE_TERMINAL (screen->terminal), charset, NULL)) {
     g_printerr("Failed to set encoding %s\n", charset);
   }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list