You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This is a platform specific issue. On Linux calling os.date("%R") results in the correct formatting. On Windows calling the same snippet results in an error.
To Reproduce
Steps to reproduce the behavior:
Open lua prompt
Type in os.date("%R")
Compare behavior on Linux vs. Windows.
Expected behavior
No Crash.
Screenshots
Environment (please complete the following information):
OS: Windows 10 / Kubuntu 22.04
CraftOS-PC Version: 2.8.1
Compiled from source? No
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Specifically, if LUA_USE_POSIX is not defined, Lua restricts itself to a set of format specifiers that it knows will be available (%R is a C99 addition according to Jack so on a C89 system it wouldn't be available). Since Windows is not POSIX, %R isn't in the list of allowed format specifiers, and Lua responds with an error.
Describe the bug
This is a platform specific issue. On Linux calling
os.date("%R")
results in the correct formatting. On Windows calling the same snippet results in an error.To Reproduce
Steps to reproduce the behavior:
lua
promptos.date("%R")
Expected behavior
No Crash.
Screenshots
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: