diff --git a/src/Makefile b/src/Makefile index 8730b98d..b3c790f6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -155,6 +155,8 @@ else endif LOPT += -lz endif + COPT += -DENABLE_FILENAMES_ICONV + LOPT += -liconv # Use gcc for compiling. Use ncc to build a callgraph and analyze the code. CC = gcc #CC = nccgen -ncgcc -ncld -ncfabs diff --git a/src/global.h b/src/global.h index 1abb0894..6b669065 100644 --- a/src/global.h +++ b/src/global.h @@ -760,7 +760,11 @@ GFX2_GLOBAL int Line_number_in_INI_file; #include #define TOCODE "CP1252" +#ifdef __macosx__ +#define FROMCODE "UTF-8-MAC" +#else #define FROMCODE "UTF-8" +#endif GFX2_GLOBAL iconv_t cd; GFX2_GLOBAL iconv_t cd_inv; #endif /* ENABLE_FILENAMES_ICONV */