diff options
author | Igor Todorovski <itodorov@ca.ibm.com> | 2024-01-12 17:59:18 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-12 17:59:18 +0100 |
commit | 497e5282b6d21b99c01c6ecc6bf41b9b1781df6a (patch) | |
tree | 77bf336e39600306a141a9138176da0588be914d /src/option.c | |
parent | 48a75f3dfb906a2d333a7b1c3545e2eb359596db (diff) |
patch 9.1.0024: z/OS (MVS) support can be improvedv9.1.0024
Problem: z/OS (MVS) support can be improved
Solution: set UTF-8 as the default encoding for z/OS
closes: #13821
Signed-off-by: Igor Todorovski <itodorov@ca.ibm.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index 2372c1aa9b..14447f59ba 100644 --- a/src/option.c +++ b/src/option.c @@ -450,9 +450,10 @@ set_init_default_encoding(void) char_u *p; int opt_idx; -# ifdef MSWIN +# if defined(MSWIN) || defined(__MVS__) // MS-Windows has builtin support for conversion to and from Unicode, using // "utf-8" for 'encoding' should work best for most users. + // z/OS built should default to UTF-8 mode as setlocale does not respect utf-8 environment variable locales p = vim_strsave((char_u *)ENC_DFLT); # else // enc_locale() will try to find the encoding of the current locale. |