#745 Possible codepage problem on Windows

v4.0beta
closed
nobody
None
5
2012-08-14
2009-06-30
No

The uploaded program defines a string "a" that contains German umlauts.

Depending on whether one uses

 SAY a

or

'echo "'a'"'

the output is different!

Stumbled over this problem analysing a problem in one of Walter Pachl's script, where he uses "dir" and "cd" via the cmd subcom, referring to directory entries that have an umlaut u (ü) as their trailing characters. The character via the cmd subcom mismatched the char extracted from a redirectred file, causing the Rexx program to fail on certain directories.

The output of such strings should be the same, i.e. independent of using a Rexx SAY statement or the cmd subcom like in the given example.

Using <ooRexx400_4852-x86_32-debug.exe> on a German Windows XP SP3. Default codepage in cmd.exe is therefore set to 850 (437 would be the DOS English codepage).

Discussion

  • Rony G. Flatscher

    Rexx program that demos different output

     
  • Rick McGuire

    Rick McGuire - 2009-06-30

    What the commands process and how data written to the screen via various paths is out of the control of the Rexx interpreter. The data is just written to the screen using 8-bit ascii, and the OS takes it from there.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks