summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/widgets-tutorial/template.cpp
diff options
context:
space:
mode:
authorDāvis Mosāns <davispuh@gmail.com>2015-08-27 00:50:11 +0300
committerDāvis Mosāns <davispuh@gmail.com>2015-09-27 19:38:29 +0000
commite18554d4f7722b7fc5b576efb7ca429112789a05 (patch)
treed6a2a25572bfc74ff37f3ec0aa65491d0661fe96 /src/widgets/doc/snippets/widgets-tutorial/template.cpp
parentbb281eea179d50a413f4ec1ff172d27ee48d3a41 (diff)
Network: Use QFile::encodeName for POSIX paths instead of toLatin1
POSIX API doesn't really have defined encoding and kernel works with null-terminated byte strings (char *) without any knowledge about encodings. But usually applications use LANG (and LC_*) as encoding making it possible to use any encoding user wishes, including full Unicode support when UTF-8 is used. This allows to create and listen to sockets with paths containing non-latin characters. eg. listen(QString("/run/υποδοχή")); Change-Id: I022ac6a8a4575103125c48768a66bef88a232a2a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Dāvis Mosāns <davispuh@gmail.com>
Diffstat (limited to 'src/widgets/doc/snippets/widgets-tutorial/template.cpp')
0 files changed, 0 insertions, 0 deletions