Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-01-26 04:37:34


Samuel Krempp wrote:
> le Thursday 22 January 2004 22:58, krempp_at_[hidden] écrivit :
> > ideally, this option would have 3 settings :
> > 1. ban all non ascii
> > and 1' : warn instead of ban
> > 2. ban characters that are found equal to any of bjam-special char in the
> > current locale (saves the user from hidden traps)
> > and 2' - just warn
> > 3. dont restrict the charset in any way.
>
> There might be a simple way to protect the user from stray characters with
> felxibility without explicitly coping with locale work
....

> How does bjam treat quoted strings ?
> I think
> "foo"
> has the same effect when parsed as
> foo
> , right ?

Right.

> then bjam could ban all non-ascii chars out of quoted strings.
>
> then people can use non-ascii chars as they want, inside quoted strings.
> -> no risk of some special chars invisibly tricking the user
> -> keeps all flexibility.

I think this proposal is the best of all. We'd also need to allow non-ascii
chars in comments but other than that the advantages you list above are true.

Anybody has objections?

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk