At 22:16 06/12/01 +0100, Jochen Roderburg wrote:
>> 
>> You could be describing a feature here - on how WGETn handles unsafe
>> characters.  
>> 
>> >wget.18 http://www.polscan.hg.pl/scans/[GmbH]_Scenery_9.csv
>> >--21:40:51--  http://www.polscan.hg.pl/scans/%5BGmbH%5D_Scenery_9.csv
>> >           => `%5BGmbH%5D_Scenery_9.csv'
>> >
>
>Do I understand you right? You mean it is a new feature of the wget version
>1.8 that the brackets are now promoted to 'unsafe characters' ?
>

I am not sure when [  and ] were defined as unsafe characters.  I must admit
not having mirroring pages with [ and ] in filenames or directories.
(though I mirror quite a few pages with ~ in them - which required me to 
make ~ a safe character).

As per the reference on how to change this:

If I am reading the following part of url.c correctly :

[  and  ] are designated as "U" - not a good sign if it is meant to be a
"safe" character.  Though easily rectified by changing the relevant U's
to 0's and recompiling(?).

Lachlan.

const static unsigned char urlchr_table[256] =
       {
         U,  U,  U,  U,   U,  U,  U,  U,   /* NUL SOH STX ETX  EOT ENQ ACK
BEL */
         U,  U,  U,  U,   U,  U,  U,  U,   /* BS  HT  LF  VT   FF  CR  SO
SI  */
         U,  U,  U,  U,   U,  U,  U,  U,   /* DLE DC1 DC2 DC3  DC4 NAK SYN
ETB */
         U,  U,  U,  U,   U,  U,  U,  U,   /* CAN EM  SUB ESC  FS  GS  RS
US  */
         U,  0,  U,  U,   0,  U,  R,  0,   /* SP  !   "   #    $   %   &   '
*/
         0,  0,  0,  R,   0,  0,  0,  R,   /* (   )   *   +    ,   -   .   /
*/
         0,  0,  0,  0,   0,  0,  0,  0,   /* 0   1   2   3    4   5   6   7
*/
         0,  0,  U,  R,   U,  R,  U,  R,   /* 8   9   :   ;    <   =   >   ?
*/
        RU,  0,  0,  0,   0,  0,  0,  0,   /* @   A   B   C    D   E   F   G
*/
         0,  0,  0,  0,   0,  0,  0,  0,   /* H   I   J   K    L   M   N   O
*/
         0,  0,  0,  0,   0,  0,  0,  0,   /* P   Q   R   S    T   U   V   W
*/
         0,  0,  0,  U,   U,  U,  U,  0,   /* X   Y   Z   [    \   ]   ^   _
*/
         U,  0,  0,  0,   0,  0,  0,  0,   /* `   a   b   c    d   e   f   g
*/
         0,  0,  0,  0,   0,  0,  0,  0,   /* h   i   j   k    l   m   n   o
*/
         0,  0,  0,  0,   0,  0,  0,  0,   /* p   q   r   s    t   u   v   w
*/
         0,  0,  0,  U,   U,  U,  U,  U,   /* x   y   z   {    |   }   ~
DEL */

-----------------------
Lachlan M. D. Cranswick
Collaborative Computational Project No 14 (CCP14)
    for Single Crystal and Powder Diffraction
  Birkbeck University of London and Daresbury Laboratory 
Postal Address: CCP14 - School of Crystallography,
                Birkbeck College,
                Malet Street, Bloomsbury,
                WC1E 7HX, London,  UK
Tel: (+44) 020 7631 6849   Fax: (+44) 020 7631 6803
E-mail: [EMAIL PROTECTED]
WWW: http://www.ccp14.ac.uk/

Reply via email to