I've run across what looks like a bug, so I'm looking for some independent confirmation as to whether it's a Wine problem or a problem with the tools I'm using under wine. If I change the length of the name I'm invoking wine from, it will either successfully or unsuccessfully recognize the file passed in on the command line. For example, if I'm in my /home/mikey/sandbox/temp123/latest/design/designsTop/top/tests/topSelfTest/test1 and invoke `wine -- mcpp.exe file.c` with mcpp.exe being on in the wine "Path" declaration, the Dos executable properly recognizes file.c. If the directory name changes to: /home/mikey/sandbox/temp123/latest/design/designsTop/top/tests/topSelfTest/test12 the application is unable to determine the path to the file file.c. Subsequent testing showed that either wine or my Dos program is truncating the current path to an arbitrary number of characters. I currently have a drive declared: -------<snip>---------- [Drive F] "Path" = "/home/mikey" "Type" = "network" "Label" = "Home" "Filesystem" = "win95" -------<snip>---------- If I add the following, everything works. I'm assuming that it works by reducing the number of characters to the current working directory relative to ${DRIVE}:\ -------<snip>---------- [Drive H] "Path" = "/home/mikey/sandbox/temp123" "Type" = "network" "Label" = "Home" "Filesystem" = "win95" -------<snip>---------- I've tried this on both 20020310 (RH 7.3) and 20031118 with the same results. If anyone's seen something similar or can offer suggestions on perferred Google search terminology (I couldn't find anything, but I'm sure I wasn't searching with the right terms) to get me closer, I'd appreciate it. Mike Kost mike at tashcorp dot net
On Mon, 22 Dec 2003 14:33:21 -0600 (CST), you wrote:> > I've run across what looks like a bug, so I'm looking for some independent > confirmation as to whether it's a Wine problem or a problem with the tools > I'm using under wine. > > If I change the length of the name I'm invoking wine from, it will either > successfully or unsuccessfully recognize the file passed in on the command > line. For example, if I'm in my > > /home/mikey/sandbox/temp123/latest/design/designsTop/top/tests/topSelfTest/test1 > > and invoke `wine -- mcpp.exe file.c` with mcpp.exe being on in the wine > "Path" declaration, the Dos executable properly recognizes file.c. > > If the directory name changes to: > /home/mikey/sandbox/temp123/latest/design/designsTop/top/tests/topSelfTest/test12 > > the application is unable to determine the path to the file file.c. > > Subsequent testing showed that either wine or my Dos program is truncating > the current path to an arbitrary number of characters.According to my old Microsoft Programmers Reference (dating from DOS 3.2) paths are limited to 64 characters. That is close to where you run into trouble, allowing for long to short filenames and the part that is Wine's drive configuration. I do not think Wine has this limit as well, most dos functions use a limit of 256 chars, but I could be wrong. My guess is that is likely the program that imposes this limit, under the real DOS it would not have benefited from longer paths. If you want to investigate further, run with --debugmsg +file,+dosfs and study the output. Rein. -- Rein Klazes rklazes@xs4all.nl
Mike, It seems like the limitation of the DOS program. If you write the filename in DOS, you have : F:\sandbox\temp123\latest\design\designsTop\top\tests\topSelfTest\test12 you notice that the 64 characters limitation is hit at the last 't' of test12. Its not a bug, but the normal behaviour defined by the old DOS programs.> If I change the length of the name I'm invoking wine from, it will > either successfully or unsuccessfully recognize the file passed in on > the command line. For example, if I'm in my >/home/mikey/sandbox/temp123/latest/design/designsTop/top/tests/topSelfTest/test1> > and invoke `wine -- mcpp.exe file.c` with mcpp.exe being on in the > wine > "Path" declaration, the Dos executable properly recognizes file.c.====Sylvain Petreolle (spetreolle_at_users_dot_sourceforge_dot_net) ICQ #170597259 Say NO to software patents Dites NON aux brevets logiciels "What if tomorrow the War could be over ?" Morpheus, in "Reloaded". _________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com