comp.lang.ada
 help / color / mirror / Atom feed
From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: need a little string hint...
Date: Tue, 01 Mar 2005 23:29:10 +0100
Date: 2005-03-01T23:29:10+01:00	[thread overview]
Message-ID: <4224ec33$0$20669$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <x7vsm3f6ota.fsf@smaug.pushface.org>

Simon Wright wrote:
> Of course you may not be talking about DNS -- but I'm pretty sure that
> under DNS legal hostname characters are [a-z0-9.-] (case insensitive)
> which doesn't include space.

it depends: look at IDN (Internationalized Domain Names), it allows to 
have Unicode characters in domain names. it then depends if your 
configuration file should hold only the ASCII-compatible value, in which 
case my remark is invalid, or if it is allowed to hold the non-encoded 
Unicode value, in which case trimming spaces will certainly yield a 
different result from the actual hostname in the file.

> A text-based config file format that includes significant whitespace
> as you suggest and doesn't delimit it (eg, with quotes) is asking to
> be derided. Just look at make(1).

there is also a problem of incompatibility: if the configuration file is 
intended to be read by many (> 1) different softwares, they all have to 
handle spaces the same way. i don't think trimming spaces is a common 
operation on hostnames, so he had better no do it this way.

-- 
rien




  reply	other threads:[~2005-03-01 22:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-28 16:08 need a little string hint mferracini
2005-02-28 16:26 ` Adrien Plisson
2005-02-28 16:49   ` mferracini
2005-02-28 16:53     ` Andre
2005-02-28 17:29       ` Adrien Plisson
2005-03-01 21:25         ` Simon Wright
2005-03-01 22:29           ` Adrien Plisson [this message]
2005-03-03  6:19             ` Simon Wright
2005-02-28 17:49     ` Jeffrey Carter
2005-02-28 16:51   ` mferracini
2005-02-28 16:59     ` Adrien Plisson
2005-03-01  3:07 ` Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox