Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
src, doc: improve documentation and error message for ICU data fallback#49666
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented Sep 15, 2023
Review requested:
|
nodejs-github-bot commented Sep 15, 2023
nodejs-github-bot commented Sep 16, 2023
| namespacei18n{ | ||
| boolInitializeICUDirectory(const std::string& path); | ||
| boolInitializeICUDirectory(const std::string& path, std::string* error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, why std::string* and not const std::string&?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an out parameter, the caller gets the error string if it fails
nodejs-github-bot commented Sep 17, 2023
81991de to ac4edacComparejoyeecheung commented Sep 18, 2023
Fixed the line length to make the linter happy |
nodejs-github-bot commented Sep 18, 2023
Previously when we fail to initialize ICU data, the error message is ``` could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) ``` This patch updates it to something similar to: ``` U_FILE_ACCESS_ERROR: Could not initialize ICU. Check the directory specified by NODE_ICU_DATA or --icu-data-dir contains icudt73l.dat and it's readable ``` Where the expected data file name is the same as U_ICUDATA_NAME.
This patch: - Documents `--with-icu-default-data-dir` and its precedence - Elaborates a bit more about the format of the name of the expected data file.
ac4edac to 930aba9Comparejoyeecheung commented Sep 18, 2023
Apparently test-icu-data-dir was matching the old error messages. Updated the test a bit. |
joyeecheung commented Sep 18, 2023
@richardlau@jasnell I've updated the test for new error message matches. Can you take a look again? Thanks |
nodejs-github-bot commented Sep 18, 2023
nodejs-github-bot commented Sep 18, 2023
nodejs-github-bot commented Sep 18, 2023
nodejs-github-bot commented Sep 22, 2023
Landed in c2cd744...db5e993 |
Previously when we fail to initialize ICU data, the error message is ``` could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) ``` This patch updates it to something similar to: ``` U_FILE_ACCESS_ERROR: Could not initialize ICU. Check the directory specified by NODE_ICU_DATA or --icu-data-dir contains icudt73l.dat and it's readable ``` Where the expected data file name is the same as U_ICUDATA_NAME. PR-URL: #49666 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
This patch: - Documents `--with-icu-default-data-dir` and its precedence - Elaborates a bit more about the format of the name of the expected data file. PR-URL: #49666 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
Previously when we fail to initialize ICU data, the error message is ``` could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) ``` This patch updates it to something similar to: ``` U_FILE_ACCESS_ERROR: Could not initialize ICU. Check the directory specified by NODE_ICU_DATA or --icu-data-dir contains icudt73l.dat and it's readable ``` Where the expected data file name is the same as U_ICUDATA_NAME. PR-URL: #49666 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
This patch: - Documents `--with-icu-default-data-dir` and its precedence - Elaborates a bit more about the format of the name of the expected data file. PR-URL: #49666 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
Previously when we fail to initialize ICU data, the error message is ``` could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) ``` This patch updates it to something similar to: ``` U_FILE_ACCESS_ERROR: Could not initialize ICU. Check the directory specified by NODE_ICU_DATA or --icu-data-dir contains icudt73l.dat and it's readable ``` Where the expected data file name is the same as U_ICUDATA_NAME. PR-URL: nodejs#49666 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
This patch: - Documents `--with-icu-default-data-dir` and its precedence - Elaborates a bit more about the format of the name of the expected data file. PR-URL: nodejs#49666 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
src: improve error message when ICU data cannot be initialized
Previously when we fail to initialize ICU data, the error message is
This patch updates it to something similar to:
Where the expected data file name is the same as U_ICUDATA_NAME.
doc: improve documentation about ICU data fallback
This patch:
--with-icu-default-data-dirand its precedencedata file.