Requirements and pre-analysis for a cross desktop configuration infrastructure

Waldo Bastian bastian at kde.org
Mon Mar 21 22:11:10 EET 2005


On Monday 21 March 2005 18:47, Philip Van Hoof wrote:
> On Mon, 2005-03-21 at 11:06 -0500, Avery Pennarun wrote:
> > On Mon, Mar 21, 2005 at 04:31:11PM +0100, Philip Van Hoof wrote:
> > > The backup-format shouldn't only be XML. XML isn't a  very  good 
> > > format for  source-control.  An  example  backup-format  that  is 
> > > suitable for source-control are ini-files or  ini-file  style  backups.
> > > Since  binary data isn't going to be supported, it's doable to use
> > > that.
> >
> > Again, ini-style files aren't the best choice if you really want this.
>
> Yes well, an example backup-format could also be something totally
> different and very suitable for source control systems. I don't think
> one-line per record formats are always a good idea. Simply because a lot
> configuration values will have newlines.
>
> Even the comma separated value format isn't truly one-line per record,
> since it's legal to put newlines in quotes.
>
> Thats and because it's possible the configuration options should be
> localisable (UTF-16) is why XML is a suitable solution for the default
> backend.

One line per record will work just fine if you use utf8 and escape newlines.

Cheers,
Waldo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20050321/4bddaa8b/attachment.pgp 


More information about the xdg mailing list