bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Problem with ÅÄÖ and wget


From: Bykov Aleksey
Subject: Re: [Bug-wget] Problem with ÅÄÖ and wget
Date: Fri, 13 Sep 2013 12:43:53 +0300
User-agent: Opera Mail/12.14 (Win32)

Greetings
Yes, You show correct cyrillic filename.
Sorry, I'm not aggree that this bug is ready to close.
Your method is mentioned in it.
This bug about filenames in non UTF-8 locales.
Main qoute:
If you are using a unix-like OS where the filesystem interface uses
utf-8, there is a workaround of using --restrict-file-names=nocontrol
(which is still too big, as that would allow problematic control
characters %01 or %09).
If you are using Windows, --restrict-file-names=nocontrol still gives
garbage (the utf-8 characters are treated as if they were in latin1).

I'm tried to solve this bug by adding new options
--local-filesystem-encoding
http://lists.gnu.org/archive/html/bug-wget/2013-05/msg00102.html
but patch was (rejected?)/(frozen?)/(lack of demand?).

Sorry, I don't know how Björn Mattsson swith it Windows Vista (x64)
filesystem to UTF-8.
In Russian locales Windows 98, XP (x86), Vista (x86) use filesystem
encoding CP866.

--
Best regars, Alex



On Fri, 13 Sep 2013 10:50:10 +0300, Tim Ruehsen <address@hidden> wrote:

Wasn't that problem always there?
Looks like bug 37564 [1], you can work around it with
--restrict-file-names=nocontrol
You may find some more information in the list archives.

1- https://savannah.gnu.org/bugs/index.php?37564

Please excuse me for my confusion. In my first tests I didn't have a proper utf-8 environment. Than I had, but didn't use --restrict-file-names=nocontrol.

Now, having a proper utf-8 env AND using nocontrol, everything looks perfect.
The bug should be closed.

$ wget --restrict-file-names=nocontrol
'http://upload.wikimedia.org/wikipedia/commons/a/ad/%D0%9F%D0%B0%D0%BC%D1%8F%D1%82%D0%BD%D0%B8%D0%BA_%D0%B7%D0%B0%D1%82%D0%BE%D0%BF%D0%BB%D0%B5%D0%BD%D0%BD%D1%8B%D0%BC_%D0%BA%D0%BE%D1%80%D0%B0%D0%B1%D0%BB%D1%8F%D0%BC_%D0%B2_%D0%A1%D0%B5%D0%B2%D0%B0%D1%81%D1%82%D0%BE%D0%BF%D0%BE%D0%BB%D0%B5.JPG'

--2013-09-13 09:43:01--
http://upload.wikimedia.org/wikipedia/commons/a/ad/%D0%9F%D0%B0%D0%BC%D1%8F%D1%82%D0%BD%D0%B8%D0%BA_%D0%B7%D0%B0%D1%82%D0%BE%D0%BF%D0%BB%D0%B5%D0%BD%D0%BD%D1%8B%D0%BC_%D0%BA%D0%BE%D1%80%D0%B0%D0%B1%D0%BB%D1%8F%D0%BC_%D0%B2_%D0%A1%D0%B5%D0%B2%D0%B0%D1%81%D1%82%D0%BE%D0%BF%D0%BE%D0%BB%D0%B5.JPG
Resolving upload.wikimedia.org (upload.wikimedia.org)... 91.198.174.234,
2620:0:862:ed1a::b
Connecting to upload.wikimedia.org (upload.wikimedia.org)|
91.198.174.234|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6937886 (6.6M) [image/jpeg]
Saving to: ‘Памятник_затопленным_кораблям_в_Севастополе.JPG’

100%[===========================================================================>]
6,937,886   1.27MB/s   in 7.2s

2013-09-13 09:43:09 (936 KB/s) -
‘Памятник_затопленным_кораблям_в_Севастополе.JPG’ saved [6937886/6937886]

$ ls -la
total 119316
drwxr-xr-x  3 oms users     20480 13-09-13 09:43:01 .
drwxr-xr-x 17 oms users      4096 09-09-13 10:36:19 ..
-rw-r--r--  1 oms users   6937886 01-09-12 10:41:38
Памятник_затопленным_кораблям_в_Севастополе.JPG

I hope my email program does it right and you can see the cyrillic filename.

Tim



reply via email to

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