https://bugs.winehq.org/show_bug.cgi?id=56498
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1
--- Comment #1 from Eric Pouech eric.pouech@gmail.com --- actually, doing
set "d=30/03/2024" set year=%d:~6,4% echo %year%
gives the expected result
there's a off by one in the computation of the length of expansion of variables: the length of "magic" variables (like DATE, TIME, CD...) isn't coherent the length of "non magic" variables
I'll send a patch later on