likle / cwalk

Path library for C/C++. Cross-Platform for Linux, FreeBSD, Windows and MacOS. Supports UNIX and Windows path styles on those platforms.
https://likle.github.io/cwalk/
MIT License
250 stars 39 forks source link

Wide string support #38

Open aomsin2526 opened 1 year ago

aomsin2526 commented 1 year ago

When working with path sometimes Wide-string is a must.

Do you think adding Wide string support such as wchar_t will worth a effort?

likle commented 1 year ago

Hi @aomsin2526 , thanks for your issue! That's a good question. I know that some platforms push for that. In short, even though I am not against adding wide character function variants, I currently don't have any plans to implement that myself.

davidebeatrici commented 1 year ago

I know that some platforms push for that.

UTF-8 is widely (pun intended) considered to be the gold standard nowadays, but unfortunately Windows is stuck with UTF-16 (UCS-2 to be precise).

My suggestion would be to avoid polluting the API, especially considering there is experimental UTF-8 support in modern versions of Microsoft's operating system.

See https://utf8everywhere.org.