print_file_wtext_locale_cstdio

print_file_wtext_cstdioにロケールを追加指定できるprint_file_wtext_locale_cstdioを作る。
main.cで、

と書く。

実行すると、こうなる。
実行すると、こうなる。

実行すると、こうなる。
test1.txtは、

UTF-8で出力
UTF-8で出力

UTF-8で出力。
test2.txtは、

EUC-JPで出力
EUC-JPで出力

EUC-JPで出力される。

Test/c/print_file_wtext_locale_cstdio/print_file_wtext_locale_cstdio/src/print_file_wtext_locale_cstdio at master · bg1bgst333/Test · GitHub