bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Importing "pdb" format


From: Holger
Subject: Re: [Bug-gnubg] Importing "pdb" format
Date: Fri, 04 Jul 2003 21:05:49 +0200

Hi Gabi,

At 09:58 03.07.2003 +0200, Gabi at HotPOP wrote:
3) It would be nice if gnubg could automatically recognize the format of each imported file. I imported files from several places and in several formats, and I don't always remember which file is in which format. This automatic format recognition seems to me an easy task.

Like Joseph already suggested: Just go for it.

Actually, I've thought of this myself already for quite some time. If you decide to implement the feature you could consider the following: I had a solution in mind very similar to the "file" command on Unix, that is with an external magic file. See the manuals for file (1) and magic (4) (i.e. here: http://www.bigbiz.com/cgi-bin/manpage). I prefer XML for the format, however. In any way, the recognition ought to base on file contents, not file endings. One could add file integrity tests, although this is probably already included in the import routines.

If you won't do it, I might eventually. But I don't know yet when, certainly not very soon.

Regards,

Holger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]