1 diff -u -r ../gtypist-2.9.5/src/gtypist.c ./src/gtypist.c
2 --- ../gtypist-2.9.5/src/gtypist.c 2014-08-12 06:29:13.000000000 +0000
3 +++ ./src/gtypist.c 2017-07-07 08:34:41.950574988 +0000
17 +#if !defined(MINGW) && !defined(__ANDROID__)
22 char* locale_encoding; /* current locale's encoding */
23 int isUTF8Locale; /* does the current locale have a UTF-8 encoding? */
25 +void check_script_file_with_current_encoding( FILE *script );
27 /* character to be display to represent "enter key" */
28 /* TODO: this requires beginner mode!
29 #define RETURN_CHARACTER 0x000023CE */
31 #define ADDCH_REV(X) wideaddch_rev(X)
35 +#if defined(MINGW) || defined(__ANDROID__)
36 #define MIN( a, b ) ( ( a ) < ( b )? ( a ) : ( b ) )
37 #define MAX( a, b ) ( ( a ) > ( b )? ( a ) : ( b ) )
44 +#if defined(MINGW) || defined(__ANDROID__)
45 locale_encoding = "UTF-8";
47 locale_encoding = nl_langinfo(CODESET);