[Development] System Locale Update broken

Thiago Macieira thiago.macieira at intel.com
Thu Apr 12 01:03:45 CEST 2012


On quarta-feira, 11 de abril de 2012 22.58.21, John Layt wrote:
> Hi,
> 
> QTBUG-24543 reports that the tst_QLocale::windowsDefaultLocale() test is
> broken and is currently being skipped.
> 
> I've determined this is because the Qt4 mechanism for triggering a refresh
> of the Qt system locale whenever the system locale is changed has been
> removed from qapplication_win.cpp and
> QWindowSystemInterface::handleLocaleChange() in Qt5.
> 
> Symbian and QNX also support this in Qt4.8 but OSX and Linux do not.
> 
> As this is a regression from 4.8 I assume it must be fixed for 5.0, rather
> than just hacking the test to make it pass?  I also assume I need to open a
> separate bug report for it?
> 
> The fix I was thinking of is making the QSystemLocale implementations detect
> any change in the system locale and call
> QLocalePrivate::updateSystemPrivate() themselves, which would also emit the
> QEvent::LocaleChange.
> 
> Any thoughts on this?  Any Windows hackers willing to try adapt the old
> qapplication_win.cpp code to fit in qlocale_win.cpp?

You can probably make it fit in qcoreapplication_win.cpp, by adding a notifier 
for whatever event Windows sends when the locale changes.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120411/75b1f883/attachment.sig>


More information about the Development mailing list