rejetto forum

hfs242 copy macro bug

Guest · 2 · 2648

0 Members and 1 Guest are viewing this topic.

Lembas

  • Guest
Hi,

{.copy|A|B.} macro copies the file but encoding is strange (at least turkish characters) and file names longer than 8 characters, suffix names longer than 3 characters are not supported.

details:
I use copy macro on windows xp and hfs242 like the following:
{.copy | %item-resource% | c:\%item-name%.}

Let's say the file is "12345678 there are spaces and turkish characters in this long file name üğışçö.longsuffix"
when the macro copies this file it becomes "12345678.lon"

as you see it is the first 8 character for the file and first 3 characters for suffix.

When I use it on ubuntu(wine) there is no problem but the encoding.

thanks


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i just tested this command and it worked fine
{.copy|E:\test è loooooong.veeeery|C:\test è loooooong.veeeery.}

the final name was just the same, no truncation.

Also, consider that if you don't need to change the destination name, this form would work as well (same effect)
{.copy|E:\test è loooooong.veeeery|C:\.}

So, about your problem, i can think only of these

1) you are using a non-turkish Windows XP, this mean that the file name is actually unicode (being not local codepage) and HFS is known to not support such situation.

2) you are running {.copy.} in a place where using %item-resource% or %item-name% are truncated.

both my guessings mean the problem is not in the {.copy.} itself.
let me know