updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / deadbeef_gbk / deadbeef.patch
blob19b13c872405a9fd72f32c58d56ecd679efbb9b9
1 diff -aur deadbeef-0.4.4/junklib.c deadbeef-0.4.4.new/junklib.c
2 --- deadbeef-0.4.4/junklib.c 2010-11-14 23:38:28.000000000 +0800
3 +++ deadbeef-0.4.4.new/junklib.c 2011-03-08 13:01:45.720000002 +0800
4 @@ -380,9 +380,9 @@
5 enc = UTF8;
7 else if (encoding == 0) {
8 - // hack to add limited cp1251 recoding support
9 + // hack to add limited gbk recoding support
10 if (can_be_russian (str)) {
11 - enc = "cp1251";
12 + enc = "gbk";
15 else if (encoding != 1 && !(version == 4 && encoding == 3)){
16 @@ -415,9 +415,9 @@
19 else if (encoding == 0) {
20 - // hack to add limited cp1251 recoding support
21 + // hack to add limited gbk recoding support
22 if (can_be_russian (str)) {
23 - enc = "cp1251";
24 + enc = "gbk";
26 else {
27 enc = "iso8859-1";
28 @@ -469,7 +469,7 @@
30 const char *enc = "iso8859-1";
31 if (can_be_russian (str)) {
32 - enc = "cp1251";
33 + enc = "gbk";
36 if (junk_iconv (str, sz, out, sizeof (out), enc, UTF8) > 0) {
37 @@ -3009,7 +3009,7 @@
39 // check if that could be non-latin1 (too many nonascii chars)
40 if (can_be_russian (s)) {
41 - return "cp1251";
42 + return "gbk";
44 return "iso8859-1";