[vte] interpret: Fix for non-ASCII characters decoding
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] interpret: Fix for non-ASCII characters decoding
- Date: Tue, 21 Nov 2017 17:37:40 +0000 (UTC)
commit b7e21e539a9c5978f3de072aae42a15980fc89aa
Author: Christian Persch <chpe src gnome org>
Date: Tue Nov 21 18:36:48 2017 +0100
interpret: Fix for non-ASCII characters decoding
Just call setlocale(), so that we can convert non-ASCII characters
correctly.
src/interpret.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/interpret.cc b/src/interpret.cc
index 1c2b2ef..aa8e9bb 100644
--- a/src/interpret.cc
+++ b/src/interpret.cc
@@ -29,6 +29,7 @@
#include <fcntl.h>
#include <glib.h>
#include <glib-object.h>
+#include <locale.h>
#include "caps.h"
#include "debug.h"
#include "iso2022.h"
@@ -77,6 +78,8 @@ main(int argc, char **argv)
const char *tmp;
GValueArray *values;
+ setlocale(LC_ALL, "");
+
_vte_debug_init();
if (argc < 1) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]