rtorrent 目前滿新的 bt client。比起 bitornado 有更好的 ncurse ui 和 UTF-8 support。但在 ncurse UI 方面卻不能顯示正確的寬字元。
檢查一下 source code ,發現作者已經有wide character support,只是註解掉。所以說,我只是把他顯示的地方做點小修改,就正常了。
diff 檔如下:
diff -Nur rtorrent-0.6.2/debian/control rtorrent-0.6.2-mod/debian/control
--- rtorrent-0.6.2/debian/control 2006-10-27 11:08:40.000000000 +0800
+++ rtorrent-0.6.2-mod/debian/control 2006-10-27 11:01:44.686785750 +0800
@@ -3,7 +3,7 @@
Priority: extra
Maintainer: Jose Luis Rivas
Uploaders: Arnaud Fontaine
-Build-Depends: debhelper (>= 5.0.37.2), libtorrent9-dev(>= 0.10.1), libsigc++-2.0-dev, libcurl3-openssl-dev, libncurses5-dev, bc
+Build-Depends: debhelper (>= 5.0.37.2), libtorrent9-dev(>= 0.10.1), libsigc++-2.0-dev, libcurl3-openssl-dev, libncursesw5-dev, bc
Standards-Version: 3.7.2
Package: rtorrent
diff -Nur rtorrent-0.6.2/src/display/window_file_list.cc rtorrent-0.6.2-mod/src/display/window_file_list.cc
--- rtorrent-0.6.2/src/display/window_file_list.cc 2006-10-27 11:08:40.000000000 +0800
+++ rtorrent-0.6.2-mod/src/display/window_file_list.cc 2006-10-27 11:00:45.171066250 +0800
@@ -55,6 +55,7 @@
}
+
std::wstring
hack_wstring(const std::string& src) {
size_t length = ::mbstowcs(NULL, src.c_str(), src.size());
@@ -70,7 +71,6 @@
return dest;
}
-
void
WindowFileList::redraw() {
m_slotSchedule(this, (cachedTime + rak::timer::from_seconds(10)).round_seconds());
@@ -100,10 +100,10 @@
while (range.first != range.second) {
torrent::File e = fl.get(range.first);
- std::wstring path = e.path_str();
+ std::wstring path = hack_wstring(e.path_str());
if (path.length() <= 50)
- path = path + std::string(50 - path.length(), ' ');
+ path = path + std::wstring(50 - path.length(), ' ');
else
path = path.substr(0, 50);
@@ -127,7 +127,7 @@
break;
};
- m_canvas->print(0, pos, "%c %s %6.1f %s %3d %9s",
+ m_canvas->print(0, pos, "%c %ls %6.1f %s %3d %9s",
range.first == *m_focus ? '*' : ' ',
path.c_str(),
(double)e.size_bytes() / (double)(1 << 20),
請新建立 deb 檔案後,就能正常使用了。該檔案已送 wishlist,希望 maintainer 能加入該功能
Posted by asho at October 27, 2006 11:36 AMExtreme clothes sale or [url=http://cheap-clothes-online.info/extreme-sale/]Extreme clothes sale[/url] or http://cheap-clothes-online.info/extreme-sale/
Posted by: Clothes at November 21, 2006 12:04 PMAtivan or [url=http://ativan.0gr.pl/]Ativan[/url] or http://ativan.0gr.pl/
Posted by: Clothes at November 24, 2006 04:49 AMAtivan or [url=http://ativan.ds4a.com/ativan.html]Ativan[/url] or http://ativan.ds4a.com/ativan.html
Posted by: Clothes at November 25, 2006 10:22 AMAtivan or [url=http://ativan.ds4a.com/ativan.html]Ativan[/url] or http://ativan.ds4a.com/ativan.html
Posted by: Clothes at November 25, 2006 10:25 AMhttp://www.bomji.com/amateur.php amateur pics
Posted by: amateur sex at November 30, 2006 03:05 PMhttp://www.bomji.com/big-cocks.php big cocks
Posted by: huge cocks at November 30, 2006 03:08 PMhttp://www.bomji.com/adult-dvd.php adult dvd
Posted by: sex dvds at November 30, 2006 03:08 PMhttp://www.bomji.com/anal.php anal sex
Posted by: anal videos at November 30, 2006 03:08 PMhttp://www.bomji.com/cumshot.php cumshot blowjob
Posted by: oral sex at November 30, 2006 03:08 PMhttp://www.bomji.com/personals.php personals
Posted by: online personals at November 30, 2006 03:08 PMhttp://www.bomji.com/adult-toys.php adult toys
Posted by: buy dildo at November 30, 2006 03:08 PMhttp://www.bomji.com/grannies.php grannies xxx
Posted by: granny xxx at November 30, 2006 03:08 PMhttp://www.bomji.com/bbw.php bbw fat
Posted by: bbw sex at November 30, 2006 03:08 PMhttp://www.bomji.com/asians.php asian girls
Posted by: asian xxx at November 30, 2006 03:08 PMhttp://www.bomji.com/handjobs.php handjobs
Posted by: handjob sex at November 30, 2006 03:08 PMhttp://www.bomji.com/fem-dom.php fem dom
Posted by: fem dom at November 30, 2006 03:08 PMhttp://www.bomji.com/interracial.php interracial
Posted by: interracial sex at November 30, 2006 03:08 PMhttp://www.bomji.com/fisting.php fisting
Posted by: fisting at November 30, 2006 03:08 PMhttp://www.bomji.com/ebony.php ebony woman
Posted by: ebony xxx at November 30, 2006 03:08 PMhttp://www.bomji.com/preggo.php preggo
Posted by: preggo sex at November 30, 2006 03:08 PMhttp://www.bomji.com/redheads.php redheads
Posted by: redheads sex at November 30, 2006 03:09 PMhttp://www.bomji.com/footjobs.php footjobs
Posted by: foot sex at November 30, 2006 03:11 PMhttp://www.bomji.com/personals.php personals
Posted by: online personals at November 30, 2006 03:12 PMhttp://www.bomji.com/big-tits.php big tits
Posted by: tit fucking at November 30, 2006 03:12 PMhttp://www.bomji.com/pieeing.php peeing
Posted by: pissing sex at November 30, 2006 03:12 PMhttp://www.bomji.com/xxx-toons.php xxx toons
Posted by: sex cartoons at November 30, 2006 03:13 PMhttp://www.bomji.com/pantyhose-sex.php pantyhose sex
Posted by: pantyhosesex at November 30, 2006 03:13 PMhttp://www.bomji.com/ebony.php ebony woman
Posted by: ebony xxx at November 30, 2006 03:13 PMhttp://www.bomji.com/lesbians.php lesbians
Posted by: lesbian sex at November 30, 2006 03:13 PMhttp://www.bomji.com/brunettes.php brunettes girls
Posted by: brunette xxx at November 30, 2006 03:13 PMhttp://www.bomji.com/shemales.php shemales
Posted by: shemale porn at November 30, 2006 03:13 PMhttp://www.bomji.com/fem-dom.php fem dom
Posted by: fem dom at November 30, 2006 03:13 PMhttp://www.bomji.com/voyeur.php voyeur
Posted by: voyeur porn at November 30, 2006 03:13 PMhttp://www.bomji.com/adult-toys.php adult toys
Posted by: buy dildo at November 30, 2006 03:13 PMhttp://www.bomji.com/adult-dvd.php adult dvd
Posted by: sex dvds at November 30, 2006 03:13 PMhttp://www.bomji.com/fisting.php fisting
Posted by: fisting at November 30, 2006 03:14 PMhttp://www.bomji.com/grannies.php grannies xxx
Posted by: grannies sex at November 30, 2006 03:15 PMhttp://www.bomji.com/anal.php anal sex
Posted by: anal videos at November 30, 2006 03:16 PMhttp://www.bomji.com/asians.php asian girls
Posted by: asian xxx at November 30, 2006 03:16 PMhttp://www.bomji.com/interracial.php interracial
Posted by: interracial sex at November 30, 2006 03:16 PMhttp://www.bomji.com/preggo.php preggo
Posted by: preggo sex at November 30, 2006 03:16 PMhttp://www.bomji.com/xxx-toons.php xxx toons
Posted by: sex cartoons at November 30, 2006 03:17 PMhttp://www.bomji.com/big-cocks.php big cocks
Posted by: huge cocks at November 30, 2006 03:17 PMhttp://www.bomji.com/pantyhose-sex.php pantyhose sex
Posted by: pantyhose sex pics at November 30, 2006 03:18 PMhttp://www.bomji.com/footjobs.php footjobs
Posted by: foot sex at November 30, 2006 03:18 PMhttp://www.bomji.com/redheads.php redheads
Posted by: redheads sex at November 30, 2006 03:18 PMhttp://www.bomji.com/voyeur.php voyeur
Posted by: voyeur video at November 30, 2006 03:18 PMhttp://www.bomji.com/handjobs.php handjobs
Posted by: handjob porn at November 30, 2006 03:18 PMhttp://www.bomji.com/cumshot.php cumshot blowjob
Posted by: cumshots at November 30, 2006 03:18 PMhttp://www.bomji.com/lesbians.php lesbians
Posted by: lesbian sex at November 30, 2006 03:18 PMhttp://www.bomji.com/big-tits.php big tits
Posted by: tit fucking at November 30, 2006 03:18 PMhttp://www.bomji.com/ebony.php ebony woman
Posted by: ebony porn at November 30, 2006 03:19 PMhttp://www.bomji.com/interracial.php interracial
Posted by: interracial orgies at November 30, 2006 03:19 PMhttp://www.bomji.com/shemales.php shemales
Posted by: shemales sex at November 30, 2006 03:20 PMhttp://www.bomji.com/pieeing.php peeing
Posted by: peeing sex at November 30, 2006 03:20 PMhttp://www.bomji.com/xxx-toons.php xxx toons
Posted by: xxx toons at November 30, 2006 03:21 PMhttp://www.bomji.com/fisting.php fisting
Posted by: fisting porn at November 30, 2006 03:22 PMhttp://www.bomji.com/pantyhose-sex.php pantyhose sex
Posted by: pantyhose sex pics at November 30, 2006 03:22 PMhttp://www.bomji.com/big-cocks.php big cocks
Posted by: big dicks at November 30, 2006 03:22 PMhttp://www.bomji.com/voyeur.php voyeur
Posted by: voyeur video at November 30, 2006 03:23 PMhttp://www.bomji.com/big-tits.php big tits
Posted by: tit fucking at November 30, 2006 03:23 PMhttp://www.bomji.com/redheads.php redheads
Posted by: redheads sex at November 30, 2006 03:23 PMhttp://www.bomji.com/preggo.php preggo
Posted by: preggo pics at November 30, 2006 03:23 PMhttp://www.bomji.com/fem-dom.php fem dom
Posted by: face sitting at November 30, 2006 03:23 PMhttp://www.bomji.com/orgy.php group orgies
Posted by: group orgies at November 30, 2006 03:23 PMhttp://www.bomji.com/grannies.php grannies xxx
Posted by: grannies xxx at November 30, 2006 03:23 PMhttp://www.bomji.com/brunettes.php brunettes girls
Posted by: brunettes girs at November 30, 2006 03:24 PMhttp://www.bomji.com/anal.php anal sex
Posted by: anal videos at November 30, 2006 03:24 PMhttp://www.bomji.com/interracial.php interracial
Posted by: interracial orgies at November 30, 2006 03:24 PMhttp://www.bomji.com/asians.php asian girls
Posted by: asian sex at November 30, 2006 03:24 PMhttp://www.bomji.com/pieeing.php peeing
Posted by: peeing sex at November 30, 2006 03:25 PMhttp://www.bomji.com/teens.php teens
Posted by: teen sex at November 30, 2006 03:25 PMhttp://www.bomji.com/orgy.php group orgies
Posted by: group orgies at November 30, 2006 03:26 PMhttp://www.bomji.com/fisting.php fisting
Posted by: fisting at November 30, 2006 03:26 PMhttp://www.bomji.com/orgy.php group orgies
Posted by: group orgies at November 30, 2006 03:27 PMhttp://www.bomji.com/preggo.php preggo
Posted by: preggo pics at November 30, 2006 03:27 PMhttp://www.bomji.com/xxx-toons.php xxx toons
Posted by: sex cartoons at November 30, 2006 03:27 PMhttp://www.bomji.com/pieeing.php peeing
Posted by: pissing sex at November 30, 2006 03:27 PMhttp://www.bomji.com/teens.php teens
Posted by: teen sex at November 30, 2006 03:27 PMhttp://www.bomji.com/asians.php asian girls
Posted by: asian sex at November 30, 2006 03:27 PMFuck US! Fuck Americans! or [url=http://voinenet.ru]Fuck US! Fuck Americans![/url] or http://voinenet.ru
Posted by: voinenet.ru at December 2, 2006 11:23 AMFuck US! Fuck Americans! or [url=http://voinenet.ru]Fuck US! Fuck Americans![/url] or http://voinenet.ru
Posted by: voinenet.ru at December 2, 2006 11:23 AMFuck US! Fuck Americans! or [url=http://voinenet.ru]Fuck US! Fuck Americans![/url] or http://voinenet.ru
Posted by: voinenet.ru at December 2, 2006 11:23 AMFuck US! Fuck Americans! or [url=http://voinenet.ru]Fuck US! Fuck Americans![/url] or http://voinenet.ru
Posted by: voinenet.ru at December 2, 2006 11:24 AMtrousers or [url=http://cheap-clothes-online.info/trousers/]trousers[/url] or http://cheap-clothes-online.info/trousers/
Posted by: trousers at December 6, 2006 01:32 PMreebok or [url=http://cheap-clothes-online.info/reebok/]reebok[/url] or http://cheap-clothes-online.info/reebok/
Posted by: reebok at December 6, 2006 01:32 PMAdidas or [url=http://cheap-clothes-online.info/adidas/]Adidas[/url] or http://cheap-clothes-online.info/adidas/
Posted by: Adidas at December 6, 2006 01:33 PMAdidas or [url=http://cheap-clothes-online.info/adidas/]Adidas[/url] or http://cheap-clothes-online.info/adidas/
Posted by: Adidas at December 6, 2006 01:33 PMChristmas sale or [url=http://christmas-sale.info]Christmas sale[/url] or http://christmas-sale.info
Posted by: Christmas at December 6, 2006 01:33 PMtrousers or [url=http://cheap-clothes-online.info/trousers/]trousers[/url] or http://cheap-clothes-online.info/trousers/
Posted by: trousers at December 6, 2006 01:34 PMreebok or [url=http://cheap-clothes-online.info/reebok/]reebok[/url] or http://cheap-clothes-online.info/reebok/
Posted by: reebok at December 6, 2006 01:34 PMAdidas or [url=http://cheap-clothes-online.info/adidas/]Adidas[/url] or http://cheap-clothes-online.info/adidas/
Posted by: Adidas at December 6, 2006 01:35 PM http://www.murraystreetband.com/moneymusic/musicbv.html , musicbv http://www.murraystreetband.com/moneymusic/musicbv.html
http://www.layla-angulo.com/home/homesas.html , homesas http://www.layla-angulo.com/home/homesas.html
http://www.nyforclark.com/imgs/audial.html , audial http://www.nyforclark.com/imgs/audial.html
http://www.specializedbmx.com/house/homesha.html , homesha http://www.specializedbmx.com/house/homesha.html
http://www.murraystreetband.com/moneymusic/musicba.html , musicba http://www.murraystreetband.com/moneymusic/musicba.html
http://www.bancaracas.com/home/homesaw.html , homesaw http://www.bancaracas.com/home/homesaw.html
http://www.nyforclark.com/tool/estateao.html , estateao http://www.nyforclark.com/tool/estateao.html
http://www.tangogallery.com/home/homesaj.html , homesaj http://www.tangogallery.com/home/homesaj.html
http://www.tangogallery.com/house/homeshw.html , homeshw http://www.tangogallery.com/house/homeshw.html
http://www.nyforclark.com/promo/asbestosaa.html , asbestosaa http://www.nyforclark.com/promo/asbestosaa.html
http://www.nyforclark.com/imgs/audiaf.html , audiaf http://www.nyforclark.com/imgs/audiaf.html
http://www.bancaracas.com/phones/themesae.html , themesae http://www.bancaracas.com/phones/themesae.html
http://www.layla-angulo.com/house/homesgs.html , homesgs http://www.layla-angulo.com/house/homesgs.html
http://www.murraystreetband.com/true/songaf.html , songaf http://www.murraystreetband.com/true/songaf.html
http://www.bancaracas.com/imgs/californiaac.html , californiaac http://www.bancaracas.com/imgs/californiaac.html
http://www.specializedbmx.com/car-insurance.html , car insurance http://www.specializedbmx.com/car-insurance.html
http://www.summationx.com/search/toyotaae.html , toyotaae http://www.summationx.com/search/toyotaae.html
http://www.layla-angulo.com/moneymusic/musicat.html , musicat http://www.layla-angulo.com/moneymusic/musicat.html
http://www.murraystreetband.com/promo/smallbusinessab.html , smallbusinessab http://www.murraystreetband.com/promo/smallbusinessab.html
http://www.etrangersenfrance.com/mods/lexusaa.html , lexusaa http://www.etrangersenfrance.com/mods/lexusaa.html
qOwlMzQYvITUDxEnj
http://myblog.es/criscard christmas cards christmas cards
Posted by: christmas cards at December 15, 2006 06:44 AMHello. trpp2 [url=http://www.trahnu3.com] trpp3[/url] Thanks
Posted by: trpp1 at December 15, 2006 08:53 AMHello, nice site look this:
wholesale handbags