Mercurial > octave
comparison oct-conf-post.in.h @ 30309:bf619727bf6c
interpreter: Use UTF-8 locale on Windows if possible.
* libinterp/corefcn/interpreter.cc (interpreter::interpreter): Force a UTF-8
locale on Windows if possible.
* oct-conf-post.in.h (OCTAVE_HAVE_WINDOWS_UTF8_LOCALE): Assume that Windows will
support UTF-8 locales when using UCRT.
See also: https://octave.discourse.group/t/1821
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 21 Nov 2021 15:25:04 +0100 |
parents | da1678140f7e |
children | a12b5a32f94b |
comparison
equal
deleted
inserted
replaced
30308:a9de8cde1b22 | 30309:bf619727bf6c |
---|---|
152 # define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 | 152 # define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
153 # define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | 153 # define OCTAVE_HAVE_POSIX_FILESYSTEM 1 |
154 #else | 154 #else |
155 # define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | 155 # define OCTAVE_HAVE_POSIX_FILESYSTEM 1 |
156 #endif | 156 #endif |
157 | |
158 /* assume that Windows will support UTF-8 locales when using UCRT */ | |
159 #if defined (__MSVCRT_VERSION__) && __MSVCRT_VERSION__ == 0x0E00 | |
160 # define OCTAVE_HAVE_WINDOWS_UTF8_LOCALE | |
161 #endif | |
162 | |
157 | 163 |
158 /* sigsetjmp is a macro, not a function. */ | 164 /* sigsetjmp is a macro, not a function. */ |
159 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) | 165 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) |
160 # define OCTAVE_HAVE_SIG_JUMP 1 | 166 # define OCTAVE_HAVE_SIG_JUMP 1 |
161 #endif | 167 #endif |