Re: Resource Maker and EU2.4 error

new topic     » topic index » view thread      » older message » newer message

It looks, as if this mail didn't come through, so I try again.
My apologies, if it appears twice.


Rangi wrote:

> Thanks to Wolf I have half the answer to this problem.  Makeres.ex
> crashes under 2.4 when a file to be included has a name longer than 8
> characters (excluding extension). Doesn't happen under 2.3 on same PC
> with same files. Anybody explain that ?
> Rangi

<snip>

The Eu 2.3 interpreter for DOS doesn't have Long File Name (LFN) support
for all it's file and directory functions.
The Eu 2.4 interpreter for DOS has even _less_ LFN support. sad
This applies to LFN arguments of the dir() function without wildcards.

(The following was tested under Windows 98.)

In other words, if you've got e.g. the file "this_is_a_long_name.txt",
then
   x = dir("this*.*")
correctly returns a sequence, using the Eu 2.3 or the Eu 2.4 DOS
interpreter.

   x = dir("this_is_a_long*.*")
returns -1, using both the Eu 2.3 or the Eu 2.4 DOS interpreter.


If the argument doesn't contain wildcards, as in
   x = dir("this_is_a_long_name.txt")
Eu 2.3 returns a sequence, but Eu 2.4 returns -1!!

So the difference between Eu 2.3 and 2.4 is in the last case. Since
"makeres.ex" contains several dir() commands, I believe that this issue
might cause your problem.

_Maybe_ you can just rename the .ex files to .exw files. Then they are
executed by Eu's interpreter for Windows, which shouldn't have any
problem with LFN.

You also can use my little library "Lfn.zip" from the archieves.
In David's source code, then just replace any statement "include file.e"
with "include file_ln.e". That should do the job.

HTH,
   Juergen

-- 
 /"\  ASCII ribbon campain  |
 \ /  against HTML in       |  This message has been ROT-13 encrypted
  X   e-mail and news,      |  twice for higher security.
 / \  and unneeded MIME     |

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu