Re: Lfn.e
- Posted by Juergen Luethje <eu.lue at gmx.de> Dec 24, 2002
- 427 views
Euler German wrote: > On 23 Dec 2002, at 21:38, rforno at tutopia.com wrote: > >> >> Juergen: >> As I said before, Alt-174 (that is, #AE, not #AB; was that a typo, or >> unicode has this different?) produces a left-chevron («) under Outlook >> Express and DOS. But #AE shows as R within a circle under several >> Windows editors. I tried EDXOR, Note Pad, Word Pad, Win Edit, Crimson >> Editor, and the editor that comes with Borland C++ 5.0, all with the >> same result. As I'm usign code page 850, the same as you, you should be >> getting the same results. If not, I can't explain why. ----- Original > > Ricardo: > > Alt-0174 (note the zero) is ® (Registered) while Alt-174 (no zero) is « > (left-chevron) in ANSI char-map (Windows). Ahhh ... Thanks for this explanation. In Unicode, 174 (#AE) is (R) <http://www.unicode.org/charts/PDF/U0080.pdf>. So can generally be said, that with a leading zero, on Windows we get a character from the Unicode table, and without it from the ANSI table? > While in DOS, you're using > OEM char-map and these codes will produce ® (Registered) and © > (Copyright) respectively. > You have to be careful as some editors do not handle both tables. I use > EditPad that works quite well. :) The file(name)s can also be created with the Windows explorer. At least on Win 98, it seems to handle both tables, too. So when I create a file with the Windows explorer with a name consisting of 9 (R)'s [Alt-0174], followed by ".txt", this file is shown with ex.exe by ' dir("*.*")' [short form] 'lfn_dir("*.*")' [long form, i.e. complete name] But with ex.exe, ' dir(174 & "*.*")' and 'lfn_dir(174 & "*.*")' _both_ return -1 (so lfn_dir() behaves consistently to dir()). With exw.exe, 'dir(174 & "*.*")' returns the complete filename! ^ BTW: I just sent the new version 0.71 of Lfn.zip, that includes some bug fixes, to RDS. (The bug fixes have nothing got to do with this codepage stuff.) The lib will also be available for download on my website for a week or so http://luethje.de.vu/temp/lfn.zip In order to make the library as reliable as possible, it should be tested on many various versions of DOS. This is especially important because -- if the code is well-tested -- it will likely be built into future versions of Euphoria for DOS. The testing will take just a few minutes (see LfnRead.txt), and I'd be happy, if many poeple participate. Again, I wish everybody a Merry Christmas and a Happy New Year! Best regards, Juergen (last post before X-mas) -- /"\ ASCII ribbon | while not asleep do \ / campain against | sheep += 1 X HTML e-mail and | end while / \ news |