Missing iconv implementation prevents charset conversion in compiled programs #403
Closed
Faintdawnn
started this conversation in
General
Replies: 2 comments
-
|
Thanks for your report. This has come up before: #68. I wasn't happy with the way GCC links libiconv, and since this is a rather esoteric feature I decided to skip it. I've added a note to README.md (a5cc1b2). |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Well, we might as well throw up a branch that has it for those who want. I'll do it soon. |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions