[FFmpeg-cvslog] [propchange]: r9167 - svn:log

Uoti Urpala uoti.urpala
Fri Jun 1 15:26:31 CEST 2007

On Fri, 2007-06-01 at 14:49 +0200, Benoit Fouet wrote:
> i'm fighting to find out how to produce utf8 log messages, could you
> point me to the right direction ?

If you write the log message on unix using an editor running in a
terminal, then
1) the terminal and editor used need to support utf-8 (modern ones do)
2) both terminal and editor need to be started in an utf-8 locale (or
otherwise configured to use it, but that's less common). The specific
locale subsetting that matters is LC_CTYPE.

If you haven't configured your system to have the locale setting in
systemwide environment variables then you need to start a new terminal
process with the proper locale; any commands you run in a shell under an
existing terminal with bad locale cannot fix it.

For example the command line

LC_CTYPE=SOME_UTF8_LOCALE_NAME gnome-terminal --disable-factory

should give a terminal where utf-8 works properly. The shell and editor
under the terminal will automatically inherit the correct LC_CTYPE
setting (unless you have shell configuration files which override it
with a bad value). The --disable-factory is there because by default
gnome-terminal starts a new window in an existing process (if
available), and if you already have one with bad LC_CTYPE running it
wouldn't switch to the fixed LC_CTYPE.

More information about the ffmpeg-cvslog mailing list