Hi Eric, > 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 > thanks for the links (you are a valuable source of information). > >> 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. >
UTF8 allows me not to introduce the concept of codepage in my port, which is wants to be a stand alone filesystem library. I, for example, could add a function that detects the presence of UTF8 tokens in the string path passed to dos_open().... What I really would like to do is using the ordinary fopen() function to access long-filename files. >> (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. > Ok, got it. >From this discussion I understood that at this stage of the port, it's still >early for me thinking how to add LFN support. Let me first finish the port. Enrico ------------------------------------------------------ Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada ------------------------------------------------------------------------- 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