I've been suffering file copy of DBCSfile name file, I made test rexx routine, greatly appreciate if it fixed.
Usually we Japanese use DBCSfilename file, if REXX works without error, it's great, otherwise I have to study Python, I don't want it, because I'm already 80 years old, I had worked IBM Japan more than 40 years.
Anonymous
Hi Takeshi,
your sample code submitunit.rex references an unassigned variable "TSTUNIF" in
21 *-* rc=sysfilecopy(tstunif,unif);In general, ooRexx does not support DBCS or Unicode on Windows, that is, it does not call the Windows "Wide" (W-) APIs.
You might be able to achieve what you want, by enabling the Windows Beta UTF-8 setting as described in the first "Note" at
https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page
This changes Windows to use UTF-8 for both the Console and Windows itself, but it may have unwanted side effects for you.
Once Beta UTF-8 is enabled,
say SysFileCopy('あ.tmp', 'utf.tmp')will work.
Thank you very much so quick response. I set my win 11 PC as you suggested for dbcs character support, then confirmed sysfilecopy of dbcs character(s) filename copied successfully. I believe that the malfunction of C2X will be corrected in future release. Thank you again. Takeshi Sakai