Bug 70558 - IDN domains are shown ACE-encoded in the statusbar
Summary: IDN domains are shown ACE-encoded in the statusbar
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.5.94
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-16 03:12 UTC by Thiago Macieira
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Macieira 2003-12-16 03:12:25 UTC
Version:           1.5.94 (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.3.2
OS:          Linux (i686) release 2.6.0-test11

I've just tested this by sending a mail to myself. This message in Bugzilla's e-mail should show the same behaviour. Using KMail from HEAD 20031201.

When a message is received with an IDN hostname, the status bar in KMail shows the ACE-encoded form instead of the proper Unicode hostname. According to the RFCs regulating IDNA, the ACE-encoded form should never be shown except in debugging info or when requested by the user.

For instance, the following IDN
	http://www.multim
Comment 1 Thiago Macieira 2003-12-16 03:14:00 UTC
By the way, you will need to have libidn installed in your system to see this bug. libkdecore will detect it at runtime and use it.
Comment 2 Thilo Bangert 2004-02-09 22:30:48 UTC
are you sure, it is detected at runtime? i can't seem to get it to work.

interesting though - without libidn installed an http url is detected correctly, but the statusbar simply shows 'http://' (without an URL).

OTOH, mail@idnüdomains.tld is detected (activated - made blue) up til first "foreign" character (ie. the ü) and the statusbar "correctly" shows 'mail@idn'

Comment 3 Ingo Klöcker 2004-02-09 23:20:55 UTC
CVS commit by kloecker: 

Show pretty URL in the status bar when hovering over a URL. Fixes bug #70558 (IDN domains are shown ACE-encoded in the statusbar)

CCMAIL: 70558-fixed@bugs.kde.org


  M +1 -1      urlhandlermanager.cpp   1.5


--- kdepim/kmail/urlhandlermanager.cpp  #1.4:1.5
@@ -127,5 +127,5 @@ namespace {
     bool handleContextMenuRequest( const KURL &, const QPoint &, KMReaderWin * ) const;
     QString statusBarMessage( const KURL & url, KMReaderWin * ) const {
-      return url.url();
+      return url.prettyURL();
     }
   };


Comment 4 Thiago Macieira 2004-02-10 00:13:25 UTC
Yes, it's detected at runtime. But KDE 3.2 will not work with libidn >= 0.3 (0.3.7 at least is verified NOT to work). A fix has already been applied and can be retrieved from CVS. It will also be included in KDE 3.2.1.

libidn 0.2 is OK (sonames 6 through 10).