[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KConfig
From:       John Corey <jcorey () fruity ! ath ! cx>
Date:       1999-10-31 14:56:09
[Download RAW message or body]

Stephan Kulow wrote:
> 
> Bernd Gehrmann wrote:
> >
> > Shouln't KConfig be able to read/write _arbitrary_ strings?
> > Currently, when I write something like "foo " (with a white-
> > space at the end), I get back "foo" when reading the entry.
> > To make it even more inconsistent, this happens only when
> > the entry is read from disk, not from the cache.
> >
> Well, there is even a stripWhiteSpaces in the code to make
> it easier for humans to edit the entries. But your point is
> valid.

And if a human edited the file, they'll probably miss/delete the ending
space.  So wouldn't it be better for an app that does this to enclose
the string in quotes?  This will alert humans to the existence of the
extra character(s), and it is pretty simple to just strip off (or add)
the first/last character after you read (or write) the entry with
kconfig.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic