https://issues.qgis.org/https://issues.qgis.org/favicon.ico2009-12-23T03:22:31ZQGIS Issue TrackingQGIS Application - Feature request #2315: QGIS exceptions does not support unicodehttps://issues.qgis.org/issues/2315?journal_id=210442009-12-23T03:22:31ZJürgen Fischerjef@norbit.de
<ul></ul><p>The exception can handle non-ascii messages.</p>
<p>I've already had a pending patch - which also contains string changes, we can't currently commit. Although I wasn't able to get a garbled error message as my proj doesn't emit localized messages. I just see the latvian error message with an English error text from proj.</p> QGIS Application - Feature request #2315: QGIS exceptions does not support unicodehttps://issues.qgis.org/issues/2315?journal_id=210452009-12-24T03:09:52Zmarisn -
<ul></ul><p>Changing bug description back to original, as proj.4 currently does not support localized error messages. This is (almost) pure QGIS issue.</p>
<p>Compiled current QGIS trunk (<a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/b2e7a7c1cfd613ece0274fa19ac50be12ed25001" title="Don't read composer title from template. Fixes bug #2311 git-svn-id: http://svn.osgeo.org/qgis/t...">b2e7a7c1</a> (SVN r12613)) without any CMAKE_BUILD_TYPE setting with Qt 4.6.0. QGIS displays pop-up with text and after clicking OK, it's impossible to close QGIS window (only with xkill):</p>
<pre>
Neveiksmīgs forward transformēšana no
(10075.3, 112109)
ar kļūdu: latitude or longitude exceeded limits
</pre><br />String should read (still it's grammatically incorrect due to how this string is represented to translators and hardcoded "forward" word):<br /><pre>
Neveiksmīgs forward transformēšana ...
</pre>
<p>IMHO problem lies here: <a class="external" href="http://trac.osgeo.org/qgis/browser/trunk/qgis/src/core/qgsexception.h#L54">http://trac.osgeo.org/qgis/browser/trunk/qgis/src/core/qgsexception.h#L54</a><br />Conversion between QString and std::string is done via fromAscii() (if I understood QString manual correctly).</p> QGIS Application - Feature request #2315: QGIS exceptions does not support unicodehttps://issues.qgis.org/issues/2315?journal_id=210462009-12-24T07:14:30ZJürgen Fischerjef@norbit.de
<ul></ul><p><a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/ed0d9dad59b5d27e5a52103148d1323c37cafea8" title="catch projection exceptions while V2 rendering git-svn-id: http://svn.osgeo.org/qgis/trunk@12615...">ed0d9dad</a> (SVN r12616) should catch the exceptions in the first place (the V2 renderers would hang otherwise),<br /><a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/8cc3c65e7a2a35a48c28ba5f84ec3b20c5d68f9c" title="use QString in QgsException to fix encoding git-svn-id: http://svn.osgeo.org/qgis/trunk@12616 c8...">8cc3c65e</a> (SVN r12617) should fix the encoding problem, if they still become visible somewhere,<br />but the translation string update is still pending.</p> QGIS Application - Feature request #2315: QGIS exceptions does not support unicodehttps://issues.qgis.org/issues/2315?journal_id=210472009-12-28T12:33:49ZJürgen Fischerjef@norbit.de
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>applied in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/a13c99d1a055103d1b068d433c6d883caa6b4609" title="fix #2315 git-svn-id: http://svn.osgeo.org/qgis/trunk@12640 c8812cc2-4d05-0410-92ff-de0c093fc19c">a13c99d1</a> (SVN r12641).</p>