* uppercase filenames @ 2003-08-12 23:43 Alejandro Néstor Vargas 2003-08-13 10:51 ` Ryan Underwood 2003-08-13 11:05 ` Bart Oldeman 0 siblings, 2 replies; 6+ messages in thread From: Alejandro Néstor Vargas @ 2003-08-12 23:43 UTC (permalink / raw) To: linux-msdos I've just installed dosemu-1.1.5.6, it's workign right but in some cases the files created by the dos are created as uppercase in the linux filesystem. In particular, I can create directories with md and they are created as lowercase, but if I uses mkdir form a Turbo Pascal program, it is created as uppercase. The same occurs from inside the ide of Turbo Pascal: the files (source codes) are created as uppercase. I searched for a configuration for this but I coudn't find any reference of this. ¿Anybody can sugest me a solution or a walk-arround for this problem? Thanks... -- Alejandro Néstor Vargas Departamento de Desarrollo X Net Cuyo S.A. e-mail: anv@xnetcuyo.com.ar jabber: anv@xnetcuyo.com.ar ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: uppercase filenames 2003-08-12 23:43 uppercase filenames Alejandro Néstor Vargas @ 2003-08-13 10:51 ` Ryan Underwood 2003-08-13 11:28 ` Bart Oldeman 2003-08-13 11:05 ` Bart Oldeman 1 sibling, 1 reply; 6+ messages in thread From: Ryan Underwood @ 2003-08-13 10:51 UTC (permalink / raw) To: linux-msdos Hi, On Tue, Aug 12, 2003 at 08:43:34PM -0300, Alejandro Néstor Vargas wrote: > I've just installed dosemu-1.1.5.6, it's workign right but in some cases > the files created by the dos are created as uppercase in the linux > filesystem. In particular, I can create directories with md and they are > created as lowercase, but if I uses mkdir form a Turbo Pascal program, it > is created as uppercase. The same occurs from inside the ide of Turbo > Pascal: the files (source codes) are created as uppercase. I searched for a > configuration for this but I coudn't find any reference of this. If you are using a lredir drive, the relevant code is in dosext/mfs/mfs.c, in dos_fs_redirect(). It looks like the file is created verbatim to the DOS create command; if the DOS programmer happened to use all uppercase or some mixed case in his program, the file is actually created with that case on the unix side, even though on the dos side it is all treated as universal case. I agree that having mixed case filenames under unix tends to be an annoyance. Perhaps this should be made into a configurable option. -- Ryan Underwood, <nemesis at icequake.net>, icq=10317253 - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: uppercase filenames 2003-08-13 10:51 ` Ryan Underwood @ 2003-08-13 11:28 ` Bart Oldeman 0 siblings, 0 replies; 6+ messages in thread From: Bart Oldeman @ 2003-08-13 11:28 UTC (permalink / raw) To: linux-msdos On Wed, 13 Aug 2003, Ryan Underwood wrote: > On Tue, Aug 12, 2003 at 08:43:34PM -0300, Alejandro Néstor Vargas wrote: > > I've just installed dosemu-1.1.5.6, it's workign right but in some cases > > the files created by the dos are created as uppercase in the linux > > filesystem. In particular, I can create directories with md and they are > > created as lowercase, but if I uses mkdir form a Turbo Pascal program, it > > is created as uppercase. The same occurs from inside the ide of Turbo > > Pascal: the files (source codes) are created as uppercase. I searched for a > > configuration for this but I coudn't find any reference of this. > > If you are using a lredir drive, the relevant code is in dosext/mfs/mfs.c, > in dos_fs_redirect(). It looks like the file is created verbatim to the DOS > create command; if the DOS programmer happened to use all uppercase or > some mixed case in his program, the file is actually created with that > case on the unix side, even though on the dos side it is all treated as > universal case. The DOS (non-LFN) create command always passes pure upper case to DOSEMU (via int2f/ax=11xx). This used to be lowercased by some function in mfs.c so that a lower case file was created. However by introducing LFN support some MFS functions had to be changed to preserve case and hence some "strlowerDOS" calls were removed. Now the strlowerDOS happens at a later time but I think I forgot it for some cases. > I agree that having mixed case filenames under unix tends to be an > annoyance. Perhaps this should be made into a configurable option. It isn't mixed case that is a problem. LFNs preserve case by design, that shouldn't be configurable. The thing that is arbitrary is whether DOS SFNs are pure uppercase or pure lowercase in the Linux filesystem. To be consistent with the view the "msdos" and "vfat" filesystems give us they were always created lowercase in DOSEMU. Samba has these options (as a comparison): a) "mangle case = yes/no" controls if names that have characters that aren't of the "default" case are mangled. For example, if this is yes then a name like "Mail" would be mangled. Default no. b) "case sensitive = yes/no" controls whether filenames are case sensitive. If they aren't then Samba must do a filename search and match on passed names. Default no. c) "default case = upper/lower" controls what the default case is for new filenames. Default lower. d) "preserve case = yes/no" controls if new files are created with the case that the client passes, or if they are forced to be the "default" case. Default Yes. e) "short preserve case = yes/no" controls if new files which conform to 8.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced to be the "default" case. This option can be use with "preserve case = yes" to permit long filenames to retain their case, while short names are lowered. Default Yes. DOSEMU now uses a) no b) no c) lower d) yes e) no (but broken) I'm not sure which of these options make sense for DOSEMU -- DOS apps really expect case insensitivity so perhaps b)=yes is useless. Bart - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: uppercase filenames 2003-08-12 23:43 uppercase filenames Alejandro Néstor Vargas 2003-08-13 10:51 ` Ryan Underwood @ 2003-08-13 11:05 ` Bart Oldeman 2003-08-13 15:31 ` Alejandro Néstor Vargas 2003-08-13 17:25 ` uppercase filenames: the problem is in rename Alejandro Néstor Vargas 1 sibling, 2 replies; 6+ messages in thread From: Bart Oldeman @ 2003-08-13 11:05 UTC (permalink / raw) To: Alejandro Néstor Vargas; +Cc: linux-msdos On Tue, 12 Aug 2003, Alejandro Néstor Vargas wrote: > I've just installed dosemu-1.1.5.6, it's workign right but in some cases > the files created by the dos are created as uppercase in the linux > filesystem. In particular, I can create directories with md and they are > created as lowercase, but if I uses mkdir form a Turbo Pascal program, it > is created as uppercase. The same occurs from inside the ide of Turbo > Pascal: the files (source codes) are created as uppercase. I searched for a > configuration for this but I coudn't find any reference of this. > ¿Anybody can sugest me a solution or a walk-arround for this problem? it's most likely a bug that was introduced in 1.1.5.5. I will investigate and post a fix later. Bart - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: uppercase filenames 2003-08-13 11:05 ` Bart Oldeman @ 2003-08-13 15:31 ` Alejandro Néstor Vargas 2003-08-13 17:25 ` uppercase filenames: the problem is in rename Alejandro Néstor Vargas 1 sibling, 0 replies; 6+ messages in thread From: Alejandro Néstor Vargas @ 2003-08-13 15:31 UTC (permalink / raw) To: linux-msdos On Wed, 13 Aug 2003 12:05:46 +0100 (BST), Bart Oldeman <bartoldeman@users.sourceforge.net> wrote: > > it's most likely a bug that was introduced in 1.1.5.5. I will > investigate and post a fix later. OK, then, if I download a previous version it may work right? I will try. If you need a test program, I can write a little turbo pascal progran for you. -- Alejandro Néstor Vargas Departamento de Desarrollo X Net Cuyo S.A. e-mail: anv@xnetcuyo.com.ar jabber: anv@xnetcuyo.com.ar ^ permalink raw reply [flat|nested] 6+ messages in thread
* uppercase filenames: the problem is in rename 2003-08-13 11:05 ` Bart Oldeman 2003-08-13 15:31 ` Alejandro Néstor Vargas @ 2003-08-13 17:25 ` Alejandro Néstor Vargas 1 sibling, 0 replies; 6+ messages in thread From: Alejandro Néstor Vargas @ 2003-08-13 17:25 UTC (permalink / raw) To: Bart Oldeman; +Cc: linux-msdos On Wed, 13 Aug 2003 12:05:46 +0100 (BST), Bart Oldeman <bartoldeman@users.sourceforge.net> wrote: > it's most likely a bug that was introduced in 1.1.5.5. I will > investigate and post a fix later. I was creating a test program and discovered that the problem is when you rename a file. The test programs are in http://www.xnetcuyo.com.ar/linux/test_dosemu/lower.pas http://www.xnetcuyo.com.ar/linux/test_dosemu/lower.exe It creates a lowercase file (lower1.txt) correctly. Then it renames it as lower2.txt and the result is LOWER2.TXT. This is the test program. You can download the compiled exe if you want. var f:text; begin assign(f,'lower1.txt'); rewrite(f); writeln(f,'lowercase'); Writeln('The file lower1.txt has bin created. This is lowercase in the unix filesystem.'); Writeln('Check this and press enter to continue'); readln; rename(f,'lower2.txt'); Writeln('lower1.txt renamed as lower2.txt. This should be lowercase but isn'#39't.'); close(f); end. -- Alejandro Néstor Vargas Departamento de Desarrollo X Net Cuyo S.A. e-mail: anv@xnetcuyo.com.ar jabber: anv@xnetcuyo.com.ar ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-08-13 17:25 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-08-12 23:43 uppercase filenames Alejandro Néstor Vargas 2003-08-13 10:51 ` Ryan Underwood 2003-08-13 11:28 ` Bart Oldeman 2003-08-13 11:05 ` Bart Oldeman 2003-08-13 15:31 ` Alejandro Néstor Vargas 2003-08-13 17:25 ` uppercase filenames: the problem is in rename Alejandro Néstor Vargas
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox