allow overriding charset with CMUS_CHARSET environment variable
On small systems like OpenWrt nl_langinfo(CODESET) always returns
"ASCII". This way the user can override this choice if the terminal
emulator supports more character sets.
This is not a normal option for simplicity: The charset is needed right
at the start of cmus, and changing during runtime is not supported (or
needed?) right now.
d179e99...
by
Mikhail Gonchar <email address hidden>
id3: fix UTF-16 handling
Cmus can't display tags in e.g. [1] properly (it assumes that since tags are
not in UTF-16BE, they are in UTF-16LE -- they are not, they are in UTF-16 with
BOM).
ID3v2.3 and ID3v2.4 specify that UCS-2 and UTF-16 strings should start with
BOM [2][3]. Unicode standard states that without BOM, you should assume that
string is BE [4].