Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUNTEST.CMD fails on non-English Widown System #612

Closed
vbandke opened this issue Jan 7, 2024 · 5 comments
Closed

RUNTEST.CMD fails on non-English Widown System #612

vbandke opened this issue Jan 7, 2024 · 5 comments
Assignees
Labels
BUG The issue describes likely incorrect product functionality that likely needs corrected.

Comments

@vbandke
Copy link

vbandke commented Jan 7, 2024

Part of the build process (as initiated by hercules-helper package) includes running RUNTEST.CMD . This fails, unfortunately, on a non-English (in my case: German) Windows system.

Runtest creates a temporary file with a generated file name %calc_mttof_rexx%. The filename created is TMP1.2024140842 (TMP1.yyyyhhmmss) instead of TMP1.whatever.REXX.

The reason: RUNTEST.CMD uses the incorrect delimiters when scanning/parsing the date/time. In a German based Windows system, the date looks like this: 07.01.2024, which is January 7, 2024. (Note that it uses a dot as separator, not a slash!).

The time, OTOH, looks like this: 14:14:32,79 (which, as you'll notice, uses colons between hh, mm and ss, but a decimal comma instead of a decimal point).

Because of this, the generated REXX file fails already on the PARSE statement in line 1

  PARSE ARG '"' formula '"'     ,2518820.rexx
  INTERPRET 'mttof = 'formula   ,2518820.rexx
  SAY FORMAT(mttof,,1)          ,2518820.rexx

With best regards

Volker Bandke

@wrljet
Copy link
Member

wrljet commented Jan 7, 2024

Volker,

I will install a German language Windows and take a look at fixing this.

Bill

@wrljet wrljet self-assigned this Jan 7, 2024
@wrljet wrljet added the BUG The issue describes likely incorrect product functionality that likely needs corrected. label Jan 7, 2024
@vbandke
Copy link
Author

vbandke commented Jan 7, 2024

That would be very welcome.   :)

@vbandke
Copy link
Author

vbandke commented Jan 7, 2024

I have a temporary fix, no formal testing, not even checked the manual if this is correct: I added the German date/time delimiters to function tempfn: in runtest,cmd, and this seems to work: (at least, the tests are run, and reported as being successful)

for /f "delims=/. tokens=1-3" %%a in ("%date:~4%") do (
  for /f "delims=:., tokens=1-4" %%d in ("%time: =0%") do (
    set "@=TMP%%c%%a%%b%%d%%e%%f%%g%random%%file_ext%"

With best regards

Volker

@wrljet
Copy link
Member

wrljet commented Jan 7, 2024

I'll try that out here.

Thanks

Fish-Git added a commit that referenced this issue Jan 7, 2024
Note: this fix only specifically addresses the German language. Other non-English languages which use different field separators will still likely fail. But we'll cross that bridge when we come to it.
@Fish-Git
Copy link
Member

Fish-Git commented Jan 7, 2024

Fixed by commit ba4e9e6.

Note: fixes only the specific German language issue described. Other non-English languages that use yet other different field separators will still likely fail. But we'll cross that bridge when we come to it.

@Fish-Git Fish-Git closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG The issue describes likely incorrect product functionality that likely needs corrected.
Projects
None yet
Development

No branches or pull requests

3 participants