-
Notifications
You must be signed in to change notification settings - Fork 38
synchronize Internationalization code on Hermes-windows with Hermes-Meta #228
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
Conversation
| // #include "unicode/uniset.h" | ||
| // #include "unicode/unorm2.h" | ||
| // #include "unicode/ustring.h" | ||
| #include "unicode/ucnv.h" |
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.
I wonder how it works.
I see that Windows ICU does not have these headers.
https://learn.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-
Do we require to have additional ICU support library dependencies to be shipped along with hermes-windows?
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.
Windows SDK has icu.h, icucommon.h and icui18n.h which should include all C APIs in icu which is supported by Windows ..
Including these actual ICU headers are risky, as we may end up referencing functions which are not actually available on ICU DLLs shipped on Windows ..
| } | ||
|
|
||
| /// https://402.ecma-international.org/8.0/#sec-case-sensitivity-and-case-mapping | ||
| std::u16string toASCIIUppercase(std::u16string_view tz) { |
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.
I would expect that there is a standard function for it already.
|
|
||
| add_hermes_unittest(BCP47ParserTests BCP47ParserTest.cpp) | ||
| target_link_libraries(BCP47ParserTests hermesBCP47Parser) | ||
| add_hermes_unittest(BCP47ParserTests BCP47ParserTest.cpp) |
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.
nit: this file should probably be just reverted.
|
@satkh , we have discussed this issue with @mganandraj offline and my basic understanding of the issue is as the following:
|
|
Converting to draft as Intl is not priority now, will re-open when we resume work on Intl . |
|
Closing this PR, will be picked up when we resume work on Intl. |
Summary
synchronize Internationalization code on Hermes-windows with Hermes-Meta.
Have commented out the few files in [lib/Platform/Intl/CMakeLists.txt], failing due to Intl not enabled in Hermes, which will be fixed in future Prs.
Test Plan
Microsoft Reviewers: Open in CodeFlow