]> granicus.if.org Git - transmission/commit
Define QT_NO_CAST_FROM_ASCII (Qt client)
authorMike Gelfand <mikedld@mikedld.com>
Thu, 29 Jan 2015 21:53:05 +0000 (21:53 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 29 Jan 2015 21:53:05 +0000 (21:53 +0000)
commitd96ef13a899bbc5ea2643c1917c300641ea4b291
tree32dc1d8b3d55cf7d0068b8377880468369232f22
parentae72695d0ce427ecae39f1ab62aa1a1b27365364
Define QT_NO_CAST_FROM_ASCII (Qt client)

Use latin1 encoding most of the time where default encoding was used
before. Qt 4 assumes latin1 by default while Qt 5 uses utf-8 which is
not what we want.

Use utf-8 encoding in some places where default encoding was used before.
This includes strings coming from RPC.

Fix an issue with SortMode::names[] (filters.cc) where missing comma
between "sort-by-queue" and "sort-by-ratio" resulted in two array entries
being merged into solid "sort-by-queuesort-by-ratio" string and all the
following items being shifted compared to their enum counterparts.
22 files changed:
qt/CMakeLists.txt
qt/app.cc
qt/details.cc
qt/favicon.cc
qt/file-tree.cc
qt/file-tree.h
qt/filterbar.cc
qt/filters.cc
qt/freespace-label.cc
qt/hig.cc
qt/license.cc
qt/mainwin.cc
qt/make-dialog.cc
qt/options.cc
qt/prefs.cc
qt/qtr.pro
qt/rpc-client.cc
qt/session.cc
qt/torrent-delegate-min.cc
qt/torrent-delegate.cc
qt/torrent.cc
qt/tracker-delegate.cc