Opened 19 months ago

Last modified 18 months ago

#25408 needs_information defect

latin-1 supplement characters in filename results in zero-sized downloaded files

Reported by: cypherpunks Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

go to https://github.com/raspberrypi/linux/wiki/config.txt
save page as...
the default filename uses · bullet points as dividers and the downloaded file is 0 bytes, replace the bullet points with a normal dash (-) and the file downloads correctly
this is torbrowser 7.5 on linux

Child Tickets

Attachments (2)

out.png (75.4 KB) - added by cypherpunks 19 months ago.
out.2.png (55.0 KB) - added by cypherpunks 18 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 19 months ago by cypherpunks

also happens with « characters in the filename

Changed 19 months ago by cypherpunks

Attachment: out.png added

comment:2 Changed 19 months ago by cypherpunks

Summary: torbrowser doesn't download files properlylatin-1 supplement characters in filename results in zero-sized downloaded files

simplifying title and adding screenshot

comment:3 Changed 19 months ago by gk

Severity: CriticalNormal
Status: newneeds_information

What locale are you using? Does that work for you with a clean default en-US bundle? On my Debian box it worked for me with an en-US bundle.

comment:4 Changed 19 months ago by cypherpunks

LANG=en_US.utf8
LC_MEASUREMENT=en_US.utf8
LC_MONETARY=en_US.utf8
LC_PAPER=en_US.utf8
LC_NUMERIC=en_US.utf8
LC_TIME=en_US.utf8
LC_ALL=C

still happens with a fresh and clean en-us bundle, everything default (except extensions.torlauncher.start_tor and extensions.torlauncher.prompt_at_startup to hook into the system tor)

% ./start-tor-browser.desktop
Launching './Browser/start-tor-browser --detach'...
%

comment:5 Changed 19 months ago by gk

Could you find out which Tor Browser version first introduces the bug for you (including the alpha releases)? We have older versions in our archive: https://archive.torproject.org/tor-package-archive/torbrowser/.

Changed 18 months ago by cypherpunks

Attachment: out.2.png added

comment:6 Changed 18 months ago by cypherpunks

apparently, all versions seem to download sucessfully, it's just that some versions say they've succeeded and others that they've failed, but all of them write at least two html files at a time, one with data, one empty, but any filename with a latin-1 supplement unicode block character in the title results in what is a bad encoding, this seems to be true in the current version at least all the way back to torbrowser 3.6

browser indicates success
tor-browser-linux64-4.5a4_en-US.tar.xz
-rw-r--r-- 1 heir loom 176162 Mar 22 01:50 $'\242.html'
drwxr-xr-x 2 heir loom 180 Mar 22 01:50 $'\242_files'
-rw-r--r-- 1 heir loom 0 Mar 22 01:50 $'\302\242.html'

browser indicates failure
tor-browser-linux64-5.0_en-US.tar.xz
-rw-r--r-- 1 heir loom 176162 Mar 22 01:56 $'\243.html'
drwxr-xr-x 2 heir loom 180 Mar 22 01:56 $'\243_files'
-rw-r--r-- 1 heir loom 0 Mar 22 01:56 $'\302\243.html'

Note: See TracTickets for help on using tickets.