mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.1.0024: z/OS (MVS) support can be improved
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>
This commit is contained in:
committed by
Christian Brabandt
parent
48a75f3dfb
commit
497e5282b6
@ -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.
|
||||
|
@ -130,7 +130,7 @@ typedef enum {
|
||||
#define ENC_UCSBOM "ucs-bom" // check for BOM at start of file
|
||||
|
||||
// default value for 'encoding'
|
||||
#ifdef MSWIN
|
||||
#if defined(MSWIN) || defined(__MVS__)
|
||||
# define ENC_DFLT "utf-8"
|
||||
#else
|
||||
# define ENC_DFLT "latin1"
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
24,
|
||||
/**/
|
||||
23,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user