Skip to content

Replace ConvertUTF with uchar.h (mbrtoc32/c32rtomb)#95

Closed
diplfranzhoepfinger wants to merge 1 commit into
brofield:masterfrom
diplfranzhoepfinger:x
Closed

Replace ConvertUTF with uchar.h (mbrtoc32/c32rtomb)#95
diplfranzhoepfinger wants to merge 1 commit into
brofield:masterfrom
diplfranzhoepfinger:x

Conversation

@diplfranzhoepfinger

Copy link
Copy Markdown
  • Remove ConvertUTF.c, ConvertUTF.h, ConvertUTF_readme.txt
  • Replace <wchar.h> with <uchar.h> in SI_CONVERT_GENERIC block
  • Replace <stdio.h> with
  • Rewrite UTF-8 conversion using mbrtoc32/c32rtomb from <uchar.h>
  • Remove ConvertUTF.c from test build

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

- Remove ConvertUTF.c, ConvertUTF.h, ConvertUTF_readme.txt
- Replace <wchar.h> with <uchar.h> in SI_CONVERT_GENERIC block
- Replace <stdio.h> with <cstdio>
- Rewrite UTF-8 conversion using mbrtoc32/c32rtomb from <uchar.h>
- Remove ConvertUTF.c from test build

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@brofield

Copy link
Copy Markdown
Owner

I liked your idea, but there is an issue with using mbrtoc32 which is that it won't work on mac and it won't work if it isn't a utf8 locale. Instead I just did a reimplementation inline of utf8 conversion. Landed it with #97

Thanks for your prompting to make it happen.

@brofield brofield closed this Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants