Eyescale/Equalizer — Issue #56: Parsing configuration files is locale-dependent and fails in some locales
Author: marlam
Created: 2011-11-12 12:09:01+00:00
State: open

Alexey Osipov discovered that the parsing of configuration files depends on the locale and may fail in some locales.

This probably only affects programs with native language support, i.e. programs that use 'setlocale(LC_ALL, "")'. One example is Bino:

LANG=C bino -o equalizer --eq-config 2-window-narrow.2D.eqc video.avi
works fine, but
LANG=de_DE.UTF-8 bino -o equalizer --eq-config 2-window-narrow.2D.eqc video.avi
fails with the message
8853 Main loader.l:44 1 Parse error: 'No channel for the given view and segment', line 40 at ')' from

This is probably due to the fact that de_DE (and others) use a comma instead of a decimal point.

The LANG=C workaround is reported to fix the issues listed in this thread:
http://software.1713.n2.nabble.com/Config-does-not-work-EQ-1-0-1-td6944693.html;cid=1321099535638-496