-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
exe packaged by yao-pkg changed Intl.DateTimeFormat output on windows #101
Comments
reason is that patches are using small icu so Initl may behave different than expected. Reason behind this choice is to keep binary size small. You can verify icu version by running About nodejs 22 issue there is already a fix for it just waiting a new patch to come out |
maybe this issue is not relate to icu? |
Based on the logs you provided I don't see it is working even on node 18 #101 (comment) The last time we built node 16 has been long time ago so maybe the build changed. I should check the commits history on https://github.com/yao-pkg/pkg-fetch I suggest you to give a try packaging the app with: https://www.npmjs.com/package/full-icu module listed on package.json |
Did more test today,the result is strange, confusing now. the origin pkg wiht node18.5.0 , DateTimeFormat is "zh-CN" or undefined
both output is correct
the yao-pkg wiht node18.20.4 , DateTimeFormat is "zh-CN" or undefined are wrong but when change DateTimeFormat is "en-US" ,the result is correct
|
What version of pkg are you using?
5.15.0
What version of Node.js are you using?
v20.18.0
What operating system are you using?
windows
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node20-win-x64 node18-win-x64
Describe the Bug
the packaged exe file output wrong format datetime string.
why this happend , still no any idea!!!
before package run on console , the output are
run the packaged exe , the output are
Expected Behavior
output the same as run on console
To Reproduce
there is code :
index.js
and the package.json
first run on windows cmd console , its output ar
then package it with yao-pkg 5.15.0
run the test-yao.exe , the output is
The text was updated successfully, but these errors were encountered: