Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Currently I'm trying to convert an Audio CD to ogg(s) using asunder, however, the encoding used in the CD (GB2312) is different to the current X session's (UTF-8):

screenshot

I tried to use a different one, but C library seems not support it:

$ LANG=zh_CN.GB2312 asunder
(process:19031): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
(... and the same screenshot ...)

P.S. I have installed the language-pack-*-zh, and the encoding GB2312 is supported by iconv:

$ iconv --list | grep GB2312
CSGB2312//
GB2312//

(I guess C library doesn't use iconv, however.)

Maybe I missed something?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Run locale -a to see the available locale definitions on your system. zh_CN.GB2312 is probably missing.

sudo localedef -f GB2312 -i zh_CN zh_CN.GB2312

should add that locale definition.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.