From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7624df5e57d09688 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-09 18:33:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.columbus.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D03DE18.9031B0F5@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: config files proposal References: <3CFA8E42.B7844253@san.rr.com> <3CFAEEB5.CE3041C2@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 10 Jun 2002 01:33:28 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1023672808 66.75.151.160 (Sun, 09 Jun 2002 18:33:28 PDT) NNTP-Posting-Date: Sun, 09 Jun 2002 18:33:28 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:25641 Date: 2002-06-10T01:33:28+00:00 List-Id: Stephen Leake wrote: > Good point. I guess I can check the write privs on the found file. Naw. > Or provide two search paths; one read-only and one writeable. Or just require the full path to the config to be saved, and perhaps default it to where it was loaded from. I think if you try to "guess" which config file to clobber, you're going to guess wrong too often. > > If "no" and you're allowing Unicode, then you have to worry about the > > bizarre transformations that some languages have. > > yes. And Glib.XML is case sensitive. Although Glib.XML also uses > String for Tags, not Wide_String. So I have to check the XML > definition; does it allow Wide_String for tags? Hmm. XML is case sensitive and uses unicode. > http://www.w3.org/TR/2000/REC-xml-20001006#NT-Letter seems to imply 16 > bit characters, but I'm not clear on whether it's UniCode or something > else. UTF-8 or UTF-16, as far as I understand. > There's also the issue of what Wide_Text_IO actually writes. That too. > Yes. However, a better solution for bitmaps is to keep the bitmap in a > file that a bitmap editor will recognize, and put the path to it > (possibly relative) in the config file. Possibly. Depends on what you're trying to accomplish. > But we don't need to _forbid_ binary data in the config file, if it's > not hard to do. Correct. But if you want it editable, you probably need to keep it text. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://home.san.rr.com/dnew/DNResume.html ** ** http://images.fbrtech.com/dnew/ ** My brain needs a "back" button so I can remember where I left my coffee mug.