I agree with your observation, but when I tried the workaround, it failed on my
computer,
shell ucp 'copy "',fn,'" "',fn2
c:\j601test\temp\?txt
The system cannot find the file specified.
0 file(s) copied.
I believe my window codepage (chinese) does not have this æ character. I wish
that the task script can be upgraded to use wchar api to solve the problem for
all code pages.
Dan Bron wrote:
I don't know if any of my wonton speculation was right, but I can reproduce the
problem on my system, and applying ucp to the literal passed to shell_jtask_
fixes it:
'iceland' fwrite fn =. jpath '~temp\','.txt',~195 166 { a.
7
fread fn
iceland
require'task'
shell 'copy "',fn,'" "',fn2=.jpath'~temp\ae.txt'
The system cannot find the file specified.
fread fn2 NB. Failure
_1
shell ucp 'copy "',fn,'" "',fn2
1 file(s) copied.
fread fn2 NB. Success.
iceland
Hope this helps,
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm