Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JIT] Imbue stringbuf with C locale (pytorch#79929)
To prevent 12345 become "12,345" if locale is not "C", as shown in the following example: ```cpp int main() { std::locale::global(std::locale("en_US.utf-8")); std::stringstream ss; ss << "12345 in " << std::locale().name() << " locale is " << 12345 ; ss.imbue(std::locale("C")); ss << " but in C locale is " << 12345; std::cout << ss.str() << std::endl; } ``` Fixes pytorch#79583 Pull Request resolved: pytorch#79929 Approved by: https://github.com/davidberard98
- Loading branch information