Skip to content

tinyiconv: Add a small iconv implementation#930

Merged
keith-packard merged 2 commits intomainfrom
tiny-iconv
Jan 29, 2025
Merged

tinyiconv: Add a small iconv implementation#930
keith-packard merged 2 commits intomainfrom
tiny-iconv

Conversation

@keith-packard
Copy link
Collaborator

This uses the existing multibyte transcoding support rather than implementing a completely separate mechanism. As such, it always supports the charsets provided by that code and so doesn't require separate configuration bits.

@keith-packard keith-packard force-pushed the tiny-iconv branch 3 times, most recently from 5293d08 to ec2c6d6 Compare January 29, 2025 07:42
We need to cast values to wchar_t before shifting so they don't get
sign-extended to negative values during the implicit conversion from
16-bit int to 32-bit wchar_t.

Signed-off-by: Keith Packard <keithp@keithp.com>
This uses the existing multibyte transcoding support rather than
implementing a completely separate mechanism. As such, it always
supports the charsets provided by that code and so doesn't require
separate configuration bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
@keith-packard keith-packard merged commit 8a8b9a6 into main Jan 29, 2025
39 checks passed
@keith-packard keith-packard deleted the tiny-iconv branch January 29, 2025 21:58
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.

1 participant

Comments