Re: backslashes in config and change of strwordtok()

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Wed, 26 Jan 2005 09:36:46 +0100

Hi,

At 00.41 26/01/2005, Evgeny Kotsuba wrote:

>On Wed, 26 Jan 2005 00:08:47 +0100 (CET)
> Henrik Nordstrom <hno@squid-cache.org> wrote:
>>On Wed, 26 Jan 2005, Evgeny Kotsuba wrote:
>>
>>>What is the reason for last changes in strwordtok() (tools.c /tools.cc) ?
>>To support the external_acl protocol in a more robust manner.
>>
>>>I.e is it now
>>>* Similar to strtok, but has some rudimentary knowledge of quoting
>>>or it makes something more ?
>>>
>>>This changes with case '\\': boke possibilitiy to put in config
>>>paths with backslashes i.e.. native form of paths for OS/2 and
>>>Windows. The worse thing is that it is with paths like
>>>C:\Squid\auth\ncsa_auth.exe or C:\Squid\redirect.exe but not mention
>>>anywere in config and/or docs
>>>How often '\n' and '\r' are used in config ?
>>On windows you can use / instead of \. Not sure aboout OS/2.
>
>"can use" is the source or bugs etc. No one exepts aliens and robots can
>take in mind what he/she can use and what can't

On Windows really this is not a problem:
- The Microsoft CRT supports "/" char instead "\" for unix code portability
- Windows specific release notes speaks about paths format limitations
- In squid.conf.default and squid.exe distributed with binaries all
predefined paths use "/"
- MinGW and Cygwin environments don't like at all paths with "\".

In the last two year I can remember one or two Windows support request about.

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Gorizia, 69 10136 - Torino - ITALY
Tel. : +39.011.3249426 Fax. : +39.011.3293665
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Wed Jan 26 2005 - 01:36:52 MST

This archive was generated by hypermail pre-2.1.9 : Tue Feb 01 2005 - 12:00:02 MST