]> git.lyx.org Git - features.git/commit
Set the default locale at startup.
authorEnrico Forestieri <forenr@lyx.org>
Wed, 11 Jun 2014 17:08:44 +0000 (19:08 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 11 Jun 2014 17:08:44 +0000 (19:08 +0200)
commit32e42f2f81c9eca4119b2483505452a8fba57844
tree387cde6f4420630db43177a8666e762f473b2d1e
parent970da7c5e275c7bed3bf14aadd4f7c5bed4b1850
Set the default locale at startup.

On startup, the default locale is "C", meaning that all system
functions assume an ascii codeset. The environment's locale
settings should be selected by calling setlocale(LC_ALL,"").
This is done by Qt during the QCoreApplication initialization
but this inizialization is never performed for batch processing
and, as a result, LyX is not able to process files whose names
contain non-ascii characters. This is not an issue on Windows,
where the file names are always stored as UTF-16, so the call is
only performed for unix-like platforms (this also includes cygwin,
due to its own filenames management that allows using characters
which are forbidden to native programs).
src/support/os_cygwin.cpp
src/support/os_unix.cpp
status.21x