]> git.lyx.org Git - features.git/commit
Fix bug 9030 except for windows
authorGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 20:37:14 +0000 (22:37 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 20:37:14 +0000 (22:37 +0200)
commitafc34c7a60faaceb5fba9463aba44e3c4062f6cb
tree5d6e0f350f35f75f05af1ee372f36ecd3eeaa1d4
parent2acd00fc17eaedbc768720da23b2f1ce13f7e634
Fix bug 9030 except for windows

The format entries should be sorted according to the culture selected for the
UI. This was not the case previously, resulting in unexpected sorting of small
and capital letters. This is now fixed by using the standard C function
strcoll(). Qt does only offer similar functionality in Qt5, and this is not
mature enough yet to depend on it.
Unfortunately we have a report that strcoll() does not work on MSVC, however
this partial fix is better than nothing. The MSVC issue might also be a
configuration problem, since MS claims that strcoll() is supported. This
still needs to be checked.
src/Format.cpp
src/support/lstrings.cpp
src/support/lstrings.h