mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #17618] Incorrect charset used for some locales


From: Gang Chen
Subject: [Mldonkey-bugs] [bug #17618] Incorrect charset used for some locales
Date: Tue, 12 Sep 2006 09:01:50 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.8.0.4) Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1)

Follow-up Comment #7, bug #17618 (project mldonkey):

The problem about tip is the filename are not converted to UTF-8 encoding
properly when it displayed in the tip window.
For example, in the src/daemon/driver/driverCommands.ml:

(Http_server.html_real_escaped (Filename.basename
impl.impl_shared_codedname))
...
(Filename.basename impl.impl_shared_codedname)

The codedname may not in UTF-8 if the system default encoding is not UTF-8, a
conversion is needed before print out the filename. I found the "shorten"
method did the conversion properly, so it will be a workaround by calling
shorten for filename before write to buffer.
For example:
(shorten (Http_server.html_real_escaped (Filename.basename
impl.impl_shared_codedname)) 999)
...
(shorten (Filename.basename impl.impl_shared_codedname) !!max_name_len)


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?17618>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]