HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by ben_bai | Hacker News Reader
Parent
Full thread
ben_bai
·
that would be wcslcpy(3)
View on HN
asveikau
·
Nope. Unicode correctness is much more complicated than switching char to wchar_t. Many glyphs take multiple codepoints or multiple character units in either utf-16 or utf-8. You need something like the break iterator "character" separator in ICU.
Reply on news.ycombinator.com