Opened 17 years ago

Closed 16 years ago

#11 closed Defect (fixed)

Crash on torrents using GBK encoding

Reported by: titer Owned by: somebody
Priority: Normal Milestone:
Component: Transmission Version:
Severity: Major Keywords: patch


Torrents file created with BitComet? using GBK (Chinese) encoding make Transmission crash because it assumes strings are UTF-8.

Attachments (2)

utf8.patch (1.0 KB) - added by zax 17 years ago.
utf8-2.patch (630 bytes) - added by zax 16 years ago.
use name.utf-8 in single-file mode

Download all attachments as: .zip

Change History (5)

comment:1 Changed 17 years ago by gungadin

  • Severity changed from minor to major
  • Type set to defect

transmission crashes whenever i try removing a gbk-encoded torrent. the removal only works if the torrent was added but not yet started. once started, even if paused, removal causes crash and only way to remove is to first remove the data dir/file of the torrent.

Changed 17 years ago by zax

comment:2 Changed 17 years ago by zax

  • Keywords patch added

attached a simple patch that looks for name.utf-8 and path.utf-8 first. this is most likely to be correctly encoded if the torrent was created by the likes of bitcomet. when present, there is no crash and the torrent functions properly.

Changed 16 years ago by zax

use name.utf-8 in single-file mode

comment:3 Changed 16 years ago by ironica

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.