Lind-Project / lind-wasm

https://lind-project.github.io/lind-wasm-docs/
Apache License 2.0
1 stars 1 forks source link

Fix locale #37

Open qianxichen233 opened 4 days ago

qianxichen233 commented 4 days ago

When fixing bash, I faced a lot of issues related to locale. Previously, locale is not working and I commented them out since I thought they are not important as locale is mainly used for setting up language specific context. But it turns out locale is used much more often than I thought. For example, isblank will look up locale to determine language specific blank character. I currently have to manually modify each function that uses locale, which is working fine, but it might probably be a better choice to just completely fix locale.

rennergade commented 2 days ago

Screenshot from 2024-11-20 16-03-22

From some brief research locale files seem to just be ASCII text, though they are compiled to that? https://stackoverflow.com/questions/65514890/glibcs-isalpha-function-and-the-en-us-utf-8-locale

I believe all we should have to do is compile the locale files and place them in the appropriate directory in the file system

rennergade commented 2 days ago

If what I posted above is true it shouldnt take any actual changes, just fixing the build and setup processes. @robinyuan1002 and @yzhang71 can you try that out.