Missing iconv implementation prevents charset conversion in compiled programs #403
Closed
Faintdawnn
started this conversation in
General
Replies: 2 comments
|
Well, we might as well throw up a branch that has it for those who want. I'll do it soon. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When using w64devkit, I encountered an error related to missing iconv implementation:
cc1.exe: error: no iconv implementation, cannot convert from UTF-8 to GB
Context:
This error occurs when trying to use charset conversion flags like
-finput-charset=UTF-8 -fexec-charset=GBKto control the encoding of string literals in compiled programs.Root Cause:
w64devkit's GCC build does not include libiconv, which is required for:
-finput-charset)-fexec-charset)Note: This does NOT affect compiler diagnostic messages (errors/warnings), which are determined by terminal locale settings.
Impact:
Comparison:
Some older MinGW distributions include iconv support, making these flags functional.
Workarounds:
MultiByteToWideChar)Suggestion:
Would it be possible to either:
This would help users understand the charset conversion limitations when working with non-UTF-8 environments.
Thanks for this excellent minimalist toolkit!
Note: Written with AI assistance, may contain inaccuracies.
All reactions