Hi Enrico,

> Microsoft created ad-hoc functions to deal with UNICODE filenames
> ... Linux allows the caller of fopen() to inject UTF8 names

There is really no need to inject or trick anything here. Just
implement the PROPER long file name functions int 21.71nn...

http://www.ctyme.com/intr/rb-3194.htm (21.71)
... http://www.ctyme.com/intr/rb-3209.htm (21.716c) ...

http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/core/fncc_fil_ianf.mspx?mfr=true

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/win9x/95func_2i3s.asp

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/win9x/lfn_1voz.asp


> I hope it wouldn't be too much difficult adding UTF8 support
> to my port, because I really need Unicode filenames support.

For what? Note that the Win9x LFN interface does not seem to
mention UTF8, so it probably uses 8 bit strings in a selected
codepage. But as LFN are stored with 16 bit Unicode chars on
disk, you can still implement things in a way which lets you
communicate with your API in Unicode, possibly UTF8.

> (CDS_MAX will have to be enlarged).

You must not do that, if you ask me. The long file name
system of Win9x support BOTH Unicode AND long file names,
so there is no need to botch-up the short file name logics
in the hope that they would stretch any longer. Thanks.

Another good way is probably using descript.ion files:
Those files, one per directory, simply contain a two
column text table. Left column is the short file name,
right column is a description - you could also use that
column as long file name. This method also has less
patent troubles.

Two FreeDOS resources about the patents:

http://www.freedos.org/freedos/news/press/2006-fat.html

* U.S. Patent #5,579,517  Common name space for long and short filenames
* U.S. Patent #5,758,352 Common name space for long and short filenames
* U.S. Patent #6,286,013 Method and system for providing a common name
  space for long and short file names in an operating system

http://fd-doc.sourceforge.net/faq/cgi-bin/viewfaq.cgi?faq=General_Information/160
(note: do you know what that spam means? some code or just gibberish?)

Eric

PS: Talking about patents, the Symantec "LFN repair" one sounds like
a very straightforward repair of LFN, I wonder why they could patent
that... http://www.patentstorm.us/patents/5761675-description.html


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to