Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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):


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

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

Maybe I missed something?

share|improve this question
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


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.