qt6-bb10/src
David Faure b9edbb5d54 QLockFile: make sure we encode the hostname as UTF-8 in the lock file
We chose to use UTF-8 as it allows us to ensure there's no mistaking the
hostname in case the locale is changed, if the host name contains
characters outside of US-ASCII.

But this didn't work because the code that wrote the hostname always
used the local 8-bit codec instead of UTF-8. On Unix, we used the
result of gethostname(3) directly, which is supposedly on the locale codec.
This commit doesn't fix Windows, which requires _wgetenv, the plan being
to encapsulate that with a qEnvironmentVariable() method.

[ChangeLog][QtCore][QLockFile] Fixed a bug that caused QLockFile not to
recognize a stale lock file if the machine's hostname contained non-US-
ASCII characters, on Unix. A Windows fix is still pending.

Task-number: QTBUG-49640
Change-Id: Ib9d045544ff370ec901626658a84ec4e6575fe21
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2016-12-21 15:57:40 +00:00
..
3rdparty List ANGLE contributions after another 2016-11-23 09:35:53 +00:00
android Update Ministro's url 2016-12-15 12:52:09 +00:00
angle use helper libs via QMAKE_USE 2016-10-15 18:45:10 +00:00
concurrent QtConcurrent: Add missing override 2016-11-29 20:37:54 +00:00
corelib QLockFile: make sure we encode the hostname as UTF-8 in the lock file 2016-12-21 15:57:40 +00:00
dbus Fix using 0 as null pointer 2016-12-06 15:32:26 +00:00
gui Avoid using QRgba64 for buffers 2016-12-20 14:56:16 +00:00
network Make the bearer QFactoryLoader a member variable, not a static 2016-12-17 04:11:13 +00:00
opengl Add missing override into Qt modules 2016-12-01 12:07:13 +00:00
openglextensions Also release winmain, qopenglextensions under commercial licenses 2016-11-18 16:19:56 +00:00
platformheaders Silence platformheaders syncqt warning about qt_egl_p.h 2016-12-16 04:07:22 +00:00
platformsupport Merge remote-tracking branch 'origin/5.8.0' into 5.8 2016-12-16 09:45:16 +01:00
plugins Fix build on Windows: winsock2.h requires WIN32_LEAN_AND_MEAN 2016-12-17 04:11:10 +00:00
printsupport Add missing override into Qt modules 2016-12-01 12:07:13 +00:00
sql MySQL: Make sure we clean the libraries from mysql_config 2016-12-14 13:29:57 +00:00
testlib QTestLib: Add timestamp to mouse click events 2016-12-16 19:18:07 +00:00
tools Silence implicit-fallthough warnings 2016-12-19 09:35:57 +00:00
widgets Doc: Updated code sample to match documentation of QCompleter 2016-12-20 21:28:37 +00:00
winmain Also release winmain, qopenglextensions under commercial licenses 2016-11-18 16:19:56 +00:00
xml QXmlAttributes: mark as shared-come-qt6 2016-10-04 06:25:54 +00:00
src.pro Fix qtlibpng being built despite system libpng being found 2016-12-15 05:19:56 +00:00