Ticket #12 (closed task: worksforme)

Opened 3 years ago

Last modified 2 years ago

Handle UTF8

Reported by: Brian Matzon <brian@…> Owned by: m
Priority: major Milestone: 1.0.2
Component: All Keywords:
Cc:

Description (last modified by m) (diff)

Attachments

utf8-test.torrent (345 bytes) - added by m 3 years ago.
The file in the torrent is named: æøåöüúù.png

Change History

Changed 3 years ago by m

  • description modified (diff)

Changed 3 years ago by m

The file in the torrent is named: æøåöüúù.png

Changed 3 years ago by m

  • reporter changed from m to Brian Matzon <brian@…>

Changed 3 years ago by m

  • status changed from new to closed
  • resolution set to invalid

File_Bittorrent and the official Bittorrent client do produce the same output, so it is not a bug.

$ php torrentinfo.php -t bugs/ticket-12/utf8-test.torrent
              name: æøåöüúù.png
          filename: utf8-test.torrent
           comment:
              date: 1131381448
        created_by: TorrentCreator 0.3
             files: (1)
                    1: æøåöüúù.png
              size: 2797
          announce: http://xxxxxx.xx:1250/announce
     announce_list:

$ torrentinfo-console bugs/ticket-12/utf8-test.torrent
torrentinfo-console 4.1.7 - decode BitTorrent metainfo files

metainfo file.......: utf8-test.torrent
info hash...........: f083668eaec3330e2f7ea54f7b948d0e82252643
file name...........: æøåöüúù.png
file size...........: 2797 (0 * 32768 + 2797)
tracker announce url: http://xxxxxx.xx:1250/announce
comment.............:

Changed 3 years ago by m

  • status changed from closed to reopened
  • resolution invalid deleted

Changed 3 years ago by m

  • milestone changed from 1.0.1 to 1.0.2

Changed 2 years ago by m

  • status changed from reopened to closed
  • resolution set to worksforme

In an UTF-8 shell the output is correct.

$ php torrentinfo.php -t utf8.torrent
              name: æøåöüúù.png
          filename: utf8.torrent
           comment:
              date: 1131381448
        created_by: TorrentCreator 0.3
             files: (1)
                    1: æøåöüúù.png
              size: 2797
          announce: http://xxxxxx.xx:1250/announce
     announce_list:

$ torrentinfo-console utf8.torrent
torrentinfo-console 4.4.0 - dekodiere BitTorrent Metainformationsdateien

Metainformationsdatei....: utf8.torrent
Informations-Hash........: f083668eaec3330e2f7ea54f7b948d0e82252643
Dateiname................: æøåöüúù.png
Dateigröße.............: 2797 (0 * 32768 + 2797)
Tracker-Ankündigungs-URL: http://xxxxxx.xx:1250/announce
Kommentar................:
Note: See TracTickets for help on using tickets.