add symbols-nerd fonts
[oi-userland.git] / components / library / vte / patches / vte-04-iconv-ja-ms.patch
blobc3472fd6fe217356645486a5acac3692e870f8db
1 diff -ruN vte-0.26.2.org/src/vteconv.c vte-0.26.2/src/vteconv.c
2 --- vte-0.26.2.org/src/vteconv.c 2010-07-16 02:08:44.000000000 +0900
3 +++ vte-0.26.2/src/vteconv.c 2013-02-12 14:00:43.786875372 +0900
4 @@ -143,6 +143,23 @@
5 real_source = source;
6 real_target = target;
8 + /*
9 + * Use the conversion with EUC-JP-MS/CP932 because we want to use
10 + * fullwidth characters as possible for Windows compatibility.
11 + * This patch is needed only in s11ur because EUC-JP-MS/CP932 are
12 + * default in s12 by 15800276.
13 + */
14 + if (g_ascii_strcasecmp(target, "EUC-JP") == 0) {
15 + real_target = "EUC-JP-MS";
16 + } else if (g_ascii_strcasecmp(target, "SHIFT_JIS") == 0) {
17 + real_target = "CP932";
18 + }
19 + if (g_ascii_strcasecmp(source, "EUC-JP") == 0) {
20 + real_source = "EUC-JP-MS";
21 + } else if (g_ascii_strcasecmp(source, "SHIFT_JIS") == 0) {
22 + real_source = "CP932";
23 + }
25 /* Determine if we need to convert gunichars to UTF-8 on input. */
26 if (strcmp(target, VTE_CONV_GUNICHAR_TYPE) == 0) {
27 real_target = "UTF-8";