[email protected]
[Top] [All Lists]

Bug#573150: marked as forwarded (psi: accented characters in addresses)

Subject: Bug#573150: marked as forwarded psi: accented characters in addresses
From: Debian Bug Tracking System
Date: Tue, 09 Mar 2010 13:33:07 +0000
Your message dated Tue, 9 Mar 2010 14:19:53 +0100
with message-id <[email protected]>
has caused the   report #573150,
regarding psi: accented characters in addresses
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]

573150: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573150
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Subject: Re: Bug#573150: psi: accented characters in addresses
From: Jan Niehusmann
Date: Tue, 9 Mar 2010 14:19:53 +0100

I got the following bug report through the debian bts. Looking at the
source code, it seems like the following function in desktoputil.cpp is
not correct:

bool DesktopUtil::openUrl(const QString& url)
        QByteArray ascii = url.toAscii();
        if (ascii == url)
                return doOpenUrl(QUrl::fromEncoded(ascii));
                return doOpenUrl(QUrl(url, QUrl::TolerantMode));

QString.toAscii is passing on latin1 characters unchanged (assuming no
QTextCodec has been set). So (ascii == url) is true even though the url
contains the character 'ö', which is then discarded by QUrl::fromEncoded.

Just calling doOpenUrl(QUrl(url, QUrl::TolerantMode)) without checking
for pure-ascii urls first does work. But of course, this essentially
reverts 9790593a9b0c72b335a5c724cd0deca443d8fa1e, so directly entering
percent-encoded URLs doesn't work any more.

I guess it's necessary to explicitely check if the url only contains
legal 7-bit characters to decide how to interpret it.


On Tue, Mar 09, 2010 at 12:57:57PM +0100, Riccardo Stagni wrote:
> Package: psi
> Version: 0.14-2
> Severity: normal
> A friend of mine sent me a link containing an accent, http://öpnvkarte.de/
> Clicking on it opened "http://pnvkarte.de/"; in my browser.
> I made some other check, and it appears that this issue happens only with .de 
> domains and with any type of accented character.
> ciao
> Riccardo
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.32-2-686 (SMP w/2 CPU cores)
> Locale: [email protected], [email protected] (charmap=ISO-8859-15)
> Shell: /bin/sh linked to /bin/bash
> Versions of packages psi depends on:
> ii  libaspell15             0.60.6-3         GNU Aspell spell-checker runtime 
> l
> ii  libc6                   2.10.2-6         Embedded GNU C Library: Shared 
> lib
> ii  libgcc1                 1:4.4.3-3        GCC support library
> ii  libqca2                 2.0.2-1          libraries for the Qt 
> Cryptographic
> ii  libqca2-plugin-ossl     0.1~20070904-4   QCA OSSL plugin for libqca2
> ii  libqt4-dbus             4:4.5.3-4        Qt 4 D-Bus module
> ii  libqt4-network          4:4.5.3-4        Qt 4 network module
> ii  libqt4-qt3support       4:4.5.3-4        Qt 3 compatibility library for 
> Qt 
> ii  libqt4-xml              4:4.5.3-4        Qt 4 XML module
> ii  libqtcore4              4:4.5.3-4        Qt 4 core module
> ii  libqtgui4               4:4.5.3-4        Qt 4 GUI module
> ii  libstdc++6              4.4.3-3          The GNU Standard C++ Library v3
> ii  libx11-6                2:1.3.3-1        X11 client-side library
> ii  libxss1                 1:1.2.0-2        X11 Screen Saver extension 
> library
> ii  zlib1g                  1: compression library - runtime
> Versions of packages psi recommends:
> ii  sox                        14.3.0-1.1+b1 Swiss army knife of sound 
> processi
> Versions of packages psi suggests:
> pn  libqca2-plugin-gnupg <none>              (no description available)
> pn  psi-translations     <none>              (no description available)
> ii  xdg-utils            1.0.2+cvs20100307-1 desktop integration utilities 
> from
> -- no debconf information

reliablesolutions GmbH & Co. KG, Aachen             Amtsgericht Aachen HRA 6801
  reliablesolutions Beteiligungs-GmbH, Aachen      Amtsgericht Aachen HRB 14116
  Geschäftsführer: Franz Fangmeyer, Jan Niehusmann

Tel: +49-241-99038196 
Fax: +49-241-99038198

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>