[pango] Use UTF-8 pragma for MSVC



commit c8b1d5bea67155ae51cb9a145d43df79a52faeb4
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Apr 13 12:25:35 2015 -0700

    Use UTF-8 pragma for MSVC
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747772

 pango/break.c                       |    4 ++++
 pango/pango-language-sample-table.h |    5 +++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index 27857c0..a59355d 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -27,6 +27,10 @@
 #include "pango-impl-utils.h"
 #include <string.h>
 
+#ifdef _MSC_VER
+#pragma execution_character_set("utf-8")
+#endif
+
 #define PARAGRAPH_SEPARATOR 0x2029
 #define PARAGRAPH_SEPARATOR_STRING "\xE2\x80\xA9"
 
diff --git a/pango/pango-language-sample-table.h b/pango/pango-language-sample-table.h
index 19614d8..c99c8bb 100644
--- a/pango/pango-language-sample-table.h
+++ b/pango/pango-language-sample-table.h
@@ -49,6 +49,11 @@
  *
  * Needless to say, the list MUST be sorted on the language code.
  */
+
+#ifdef _MSC_VER
+#pragma execution_character_set("utf-8")
+#endif
+
 /* Sacrificial define to make introspection happy. */
 #ifndef LANGUAGE
 #define LANGUAGE(x, y, z)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]