Fix issue #30, should use the right output dev according to locale.