Skip to content

Commit

Permalink
add ANSI on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kbkpbot committed Oct 1, 2024
1 parent 2e3a399 commit b6325a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/encoding/iconv/iconv_windows.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ fn name_to_codepage(name string) int {
}

name_upper := name.to_upper()
if name_upper == '' || name_upper == 'CP_ACP' {
if name_upper == '' || name_upper == 'CP_ACP' || name_upper == 'ANSI' {
return C.GetACP()
}
if name_upper == 'CP_OEMCP' {
Expand Down

0 comments on commit b6325a9

Please sign in to comment.