diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2015-04-13 12:25:35 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2015-04-13 12:25:35 -0700 |
commit | c8b1d5bea67155ae51cb9a145d43df79a52faeb4 (patch) | |
tree | 9bf67bb5124671819a833d7a11ca546bcdc8e6cd /pango | |
parent | b110042886198dc51b82d1f9d4c957121ee336eb (diff) | |
download | pango-c8b1d5bea67155ae51cb9a145d43df79a52faeb4.tar.gz |
Use UTF-8 pragma for MSVC
https://bugzilla.gnome.org/show_bug.cgi?id=747772
Diffstat (limited to 'pango')
-rw-r--r-- | pango/break.c | 4 | ||||
-rw-r--r-- | 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 27857c02..a59355d5 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 19614d8c..c99c8bb6 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) |