prowong / lrcdis

Automatically exported from code.google.com/p/lrcdis
1 stars 0 forks source link

对 103 版本的补丁 #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
不建议使用 python, 这里我提交一个使用 iconv 的 
patch,不知使用这个会如何呢?

Original issue reported on code.google.com by ptpt52 on 3 Apr 2010 at 10:10

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
认真看了你的 python 部分,我用 iconv 替换了这个部分

TITLE_ENCODING() {
    DATA=`echo "$@" | iconv -f UTF-8 -t ISO-8859-1 2>/dev/null`
    [ "$?" == "0" ] && {
        DATA=`echo "$DATA" | iconv -f GBK -t UTF-8 2>/dev/null`
        [ "$?" == "0" ] && {
            echo "$DATA"
            return 0
        }
    }
    DATA=`echo "$@" | iconv -f UTF-8 -t GBK`
    [ "$?" == "0" ] && {
        DATA=`echo "$DATA" | iconv -f UTF-8 -t UTF-8 2>/dev/null`
        [ "$?" == "0" ] && {
            echo "$DATA"
            return 0
        }
    }
    echo "$@" 
}

Original comment by ptpt52 on 3 Apr 2010 at 10:55

GoogleCodeExporter commented 9 years ago
这是我的 lrcdis

Original comment by ptpt52 on 3 Apr 2010 at 10:56

Attachments:

GoogleCodeExporter commented 9 years ago
嗯,感觉上是没问题的,我测试测试吧。不过个人认为python��
�该是不大会有兼容性问题的,现在即便是很精简的系统
也有Python。

Original comment by cxcxcxcx@gmail.com on 4 Apr 2010 at 2:16

GoogleCodeExporter commented 9 years ago
还是去掉python的依赖为好。

Original comment by bones7...@gmail.com on 19 May 2010 at 9:04