I can compile input-charset-bug.cpp source using directly gcc: g++-4.3 -finput-charset=cp1250 -c -o input-charset-bug.o input-charset-bug.cpp Unfortunatelly, I cannot compile this source via ccache: g++ -finput-charset=cp1250 -c -o input-charset-bug.o input-charset-bug.cpp cc1plus: error: failure to convert cp1250 to UTF-8 It seems, that ccache feeds g++ with preprocessed source and leaves -finput-charset=cp1250 option.
Created attachment 5538 [details] Sources with CP1250 encoding to demonstrate the bug
Quick fix: export CCACHE_CPP2=1 suggests that bug is somehow related with ccache preprocessing optimizations.
Fixed in b0f0af5ac0e393ea45859e24093d8d8562e3c2ce.