summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0733
blob: 05552af2dfdd1f7ae444bad7d7518da86f4c3f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0733
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0733
Problem:    Too many #ifdefs for the multi-byte feature.
Solution:   Tentatively always enable the multi-byte feature.  If you have a
            problem with this, please discuss on the Vim maillist.
Files:	    src/configure.ac, src/auto/configure, src/feature.h, src/Makefile,
            src/Make_bc5.mak, src/Make_cyg_ming.mak, src/Make_mvc.mak


*** ../vim-8.1.0732/src/configure.ac	2018-12-30 22:55:43.667136719 +0100
--- src/configure.ac	2019-01-12 15:44:12.958057422 +0100
***************
*** 2138,2147 ****
  AC_MSG_CHECKING(--enable-multibyte argument)
  AC_ARG_ENABLE(multibyte,
  	[  --enable-multibyte      Include multibyte editing support.], ,
! 	[enable_multibyte="no"])
  AC_MSG_RESULT($enable_multibyte)
  if test "$enable_multibyte" = "yes"; then
    AC_DEFINE(FEAT_MBYTE)
  fi
  
  dnl Right-to-Left language support for Vim will be included with big features,
--- 2138,2150 ----
  AC_MSG_CHECKING(--enable-multibyte argument)
  AC_ARG_ENABLE(multibyte,
  	[  --enable-multibyte      Include multibyte editing support.], ,
! 	[enable_multibyte="yes"])
  AC_MSG_RESULT($enable_multibyte)
  if test "$enable_multibyte" = "yes"; then
    AC_DEFINE(FEAT_MBYTE)
+ else
+   AC_MSG_ERROR([The multi-byte feature can no longer be disabled. If you have
+ 		a problem with this, discuss on the Vim mailing list.])
  fi
  
  dnl Right-to-Left language support for Vim will be included with big features,
***************
*** 4416,4442 ****
        dnl Since no FEAT_CLIPBOARD, no longer need for os_macosx.m.
        OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
!       if test "$enable_multibyte" = "yes"; then
!         AC_MSG_RESULT([yes, we need CoreServices])
!         LIBS="$LIBS -framework CoreServices"
!       else
!         dnl Since no FEAT_MBYTE, no longer need for os_mac_conv.c.
!         AC_MSG_RESULT([no])
!         OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'`
!         OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'`
!         CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'`
!       fi
      else
        AC_MSG_RESULT([yes, we need AppKit])
        LIBS="$LIBS -framework AppKit"
-       if test "$features" = "small" -a "$enable_multibyte" = "no"; then
-         dnl Since FEAT_CLIPBOARD is to be defined in vim.h for FEAT_SMALL, define
-         dnl FEAT_MBYTE in order not to compromise the interoperability of the
-         dnl clipboard.
-         AC_MSG_NOTICE([+multi_byte will be set in favor of +clipboard])
-         enable_multibyte=yes
-         AC_DEFINE(FEAT_MBYTE)
-       fi
      fi
    else
      AC_MSG_RESULT([no])
--- 4419,4429 ----
        dnl Since no FEAT_CLIPBOARD, no longer need for os_macosx.m.
        OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
!       AC_MSG_RESULT([yes, we need CoreServices])
!       LIBS="$LIBS -framework CoreServices"
      else
        AC_MSG_RESULT([yes, we need AppKit])
        LIBS="$LIBS -framework AppKit"
      fi
    else
      AC_MSG_RESULT([no])
*** ../vim-8.1.0732/src/auto/configure	2018-12-30 22:55:43.671136682 +0100
--- src/auto/configure	2019-01-12 15:45:50.097385205 +0100
***************
*** 7959,7965 ****
  if test "${enable_multibyte+set}" = set; then :
    enableval=$enable_multibyte;
  else
!   enable_multibyte="no"
  fi
  
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
--- 7959,7965 ----
  if test "${enable_multibyte+set}" = set; then :
    enableval=$enable_multibyte;
  else
!   enable_multibyte="yes"
  fi
  
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
***************
*** 7967,7972 ****
--- 7967,7975 ----
  if test "$enable_multibyte" = "yes"; then
    $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
  
+ else
+   as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
+ 		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
  fi
  
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
***************
*** 14813,14840 ****
      if test "$features" = "tiny"; then
              OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
!       if test "$enable_multibyte" = "yes"; then
!         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
  $as_echo "yes, we need CoreServices" >&6; }
!         LIBS="$LIBS -framework CoreServices"
!       else
!                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! $as_echo "no" >&6; }
!         OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'`
!         OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'`
!         CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'`
!       fi
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
  $as_echo "yes, we need AppKit" >&6; }
        LIBS="$LIBS -framework AppKit"
-       if test "$features" = "small" -a "$enable_multibyte" = "no"; then
-                                 { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5
- $as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;}
-         enable_multibyte=yes
-         $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
- 
-       fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
--- 14816,14828 ----
      if test "$features" = "tiny"; then
              OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
!       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
  $as_echo "yes, we need CoreServices" >&6; }
!       LIBS="$LIBS -framework CoreServices"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
  $as_echo "yes, we need AppKit" >&6; }
        LIBS="$LIBS -framework AppKit"
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
*** ../vim-8.1.0732/src/feature.h	2019-01-11 14:37:16.689248837 +0100
--- src/feature.h	2019-01-12 15:53:11.678485195 +0100
***************
*** 282,288 ****
  
  /*
   * +arabic		Arabic keymap and shaping support.
!  *			Requires FEAT_RIGHTLEFT and FEAT_MBYTE.
   *
   * Disabled for EBCDIC as it requires multibyte.
   */
--- 282,288 ----
  
  /*
   * +arabic		Arabic keymap and shaping support.
!  *			Requires FEAT_RIGHTLEFT
   *
   * Disabled for EBCDIC as it requires multibyte.
   */
***************
*** 597,612 ****
  #endif
  
  /*
!  * +multi_byte		Generic multi-byte character handling.  Doesn't work
!  *			with 16 bit ints.  Required for GTK+ 2.
!  *
!  * Disabled for EBCDIC:
!  * Multibyte support doesn't work on z/OS Unix currently.
   */
! #if (defined(FEAT_NORMAL) || defined(FEAT_GUI_GTK) || defined(FEAT_ARABIC)) \
! 	&& !defined(FEAT_MBYTE) && VIM_SIZEOF_INT >= 4 && !defined(EBCDIC)
  # define FEAT_MBYTE
  #endif
  
  /* Define this if you want to use 16 bit Unicode only, reduces memory used for
   * the screen structures. */
--- 597,611 ----
  #endif
  
  /*
!  * +multi_byte		Generic multi-byte character handling.
!  *			Now always enabled.
   */
! #if !defined(FEAT_MBYTE)
  # define FEAT_MBYTE
  #endif
+ #if VIM_SIZEOF_INT < 4 && !defined(PROTO)
+ 	Error: Vim only works with 32 bit int or larger
+ #endif
  
  /* Define this if you want to use 16 bit Unicode only, reduces memory used for
   * the screen structures. */
***************
*** 621,638 ****
  /* #define FEAT_MBYTE_IME */
  # endif
  
- /* Input methods are only useful with +multi_byte. */
- #if (defined(FEAT_MBYTE_IME) || defined(FEAT_XIM)) && !defined(FEAT_MBYTE)
- # define FEAT_MBYTE
- #endif
- 
- #if defined(FEAT_MBYTE) && VIM_SIZEOF_INT < 4 && !defined(PROTO)
- 	Error: Can only handle multi-byte feature with 32 bit int or larger
- #endif
- 
  /* Use iconv() when it's available. */
! #if defined(FEAT_MBYTE) && ((defined(HAVE_ICONV_H) && defined(HAVE_ICONV)) \
! 		|| defined(DYNAMIC_ICONV))
  # define USE_ICONV
  #endif
  
--- 620,627 ----
  /* #define FEAT_MBYTE_IME */
  # endif
  
  /* Use iconv() when it's available. */
! #if (defined(HAVE_ICONV_H) && defined(HAVE_ICONV)) || defined(DYNAMIC_ICONV)
  # define USE_ICONV
  #endif
  
***************
*** 669,675 ****
   * +xfontset		X fontset support.  For outputting wide characters.
   */
  #ifndef FEAT_XFONTSET
! # if defined(FEAT_MBYTE) && defined(HAVE_X11) && !defined(FEAT_GUI_GTK)
  #  define FEAT_XFONTSET
  # else
  /* #  define FEAT_XFONTSET */
--- 658,664 ----
   * +xfontset		X fontset support.  For outputting wide characters.
   */
  #ifndef FEAT_XFONTSET
! # if defined(HAVE_X11) && !defined(FEAT_GUI_GTK)
  #  define FEAT_XFONTSET
  # else
  /* #  define FEAT_XFONTSET */
***************
*** 1277,1286 ****
  
  /*
   * +terminal		":terminal" command.  Runs a terminal in a window.
!  *			requires +channel and +multibyte
   */
! #if defined(FEAT_TERMINAL) && \
! 	!(defined(FEAT_JOB_CHANNEL) && defined(FEAT_MBYTE))
  # undef FEAT_TERMINAL
  #endif
  #if defined(FEAT_TERMINAL) && !defined(CURSOR_SHAPE)
--- 1266,1274 ----
  
  /*
   * +terminal		":terminal" command.  Runs a terminal in a window.
!  *			requires +channel
   */
! #if defined(FEAT_TERMINAL) && !defined(FEAT_JOB_CHANNEL)
  # undef FEAT_TERMINAL
  #endif
  #if defined(FEAT_TERMINAL) && !defined(CURSOR_SHAPE)
*** ../vim-8.1.0732/src/Makefile	2019-01-11 17:30:13.290241872 +0100
--- src/Makefile	2019-01-12 15:49:10.156058435 +0100
***************
*** 493,503 ****
  #CONF_OPT_TERMINAL = --disable-terminal
  
  # MULTIBYTE - To edit multi-byte characters.
! # Uncomment this when you want to edit a multibyte language.
! # It's automatically enabled with normal features, GTK or IME support.
! # Note: Compile on a machine where setlocale() actually works, otherwise the
! # configure tests may fail.
! #CONF_OPT_MULTIBYTE = --enable-multibyte
  
  # When building with at least "big" features, right-left, Arabic and Farsi
  # features are enabled.  Use this to disable them.
--- 493,499 ----
  #CONF_OPT_TERMINAL = --disable-terminal
  
  # MULTIBYTE - To edit multi-byte characters.
! # This is now always enabled.
  
  # When building with at least "big" features, right-left, Arabic and Farsi
  # features are enabled.  Use this to disable them.
*** ../vim-8.1.0732/src/Make_bc5.mak	2019-01-01 13:20:05.936711257 +0100
--- src/Make_bc5.mak	2019-01-12 15:54:39.013907703 +0100
***************
*** 61,70 ****
  #		of Ruby will cause a compile error on these systems.
  #   RUBY_VER_LONG  same, but in format with dot. (1.6)
  #   DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (no)
- # MBYTE		no or yes: set to yes for multi-byte support (yes)
- #		NOTE: multi-byte support is broken in the Borland libraries,
- #		not everything will work properly!  Esp. handling multi-byte
- #		file names.
  # IME		no or yes: set to yes for multi-byte IME support (yes)
  #   DYNAMIC_IME no or yes: set to yes to load imm32.dll dynamically (yes)
  # GETTEXT	no or yes: set to yes for multi-language support (yes)
--- 61,66 ----
***************
*** 104,114 ****
  GUI = yes
  !endif
  
- ### MBYTE: yes for multibyte support, no to disable it.
- !if ("$(MBYTE)"=="")
- MBYTE = yes
- !endif
- 
  ### IME: yes for multibyte support, no to disable it.
  !if ("$(IME)"=="")
  IME = yes
--- 100,105 ----
***************
*** 216,222 ****
  	("$(RUBY)"=="") && \
  	("$(ICONV)"!="yes") && \
  	("$(IME)"!="yes") && \
- 	("$(MBYTE)"!="yes") && \
  	("$(XPM)"=="")
  FASTCALL = yes
  !endif
--- 207,212 ----
***************
*** 397,405 ****
  DEFINES = $(DEFINES) -DFEAT_OLE
  !endif
  #
- !if ("$(MBYTE)"=="yes")
- MBDEFINES = $(MBDEFINES) -DFEAT_MBYTE
- !endif
  !if ("$(IME)"=="yes")
  MBDEFINES = $(MBDEFINES) -DFEAT_MBYTE_IME
  !if ("$(DYNAMIC_IME)" == "yes")
--- 387,392 ----
***************
*** 687,695 ****
  !if ("$(FASTCALL)"=="yes")
  MSG = $(MSG) FASTCALL
  !endif
- !if ("$(MBYTE)"=="yes")
- MSG = $(MSG) MBYTE
- !endif
  !if ("$(IME)"=="yes")
  MSG = $(MSG) IME
  ! if "$(DYNAMIC_IME)" == "yes"
--- 674,679 ----
*** ../vim-8.1.0732/src/Make_cyg_ming.mak	2019-01-01 13:20:05.936711257 +0100
--- src/Make_cyg_ming.mak	2019-01-12 15:55:03.373745987 +0100
***************
*** 65,73 ****
  ICONV=yes
  GETTEXT=yes
  
- # Set to yes to include multibyte support.
- MBYTE=yes
- 
  # Set to yes to include IME support.
  IME=yes
  DYNAMIC_IME=yes
--- 65,70 ----
***************
*** 911,920 ****
  USE_STDCPLUS = yes
  endif
  
- ifeq (yes, $(MBYTE))
- DEFINES += -DFEAT_MBYTE
- endif
- 
  ifeq (yes, $(IME))
  DEFINES += -DFEAT_MBYTE_IME
  ifeq (yes, $(DYNAMIC_IME))
--- 908,913 ----
*** ../vim-8.1.0732/src/Make_mvc.mak	2019-01-11 17:30:13.294241849 +0100
--- src/Make_mvc.mak	2019-01-12 15:55:35.133534759 +0100
***************
*** 26,40 ****
  #	GUI interface: GUI=yes (default is no)
  #
  #	GUI with DirectWrite (DirectX): DIRECTX=yes
! #	  (default is yes if GUI=yes, requires GUI=yes and MBYTE=yes)
  #
  #	Color emoji support: COLOR_EMOJI=yes
  #	  (default is yes if DIRECTX=yes, requires WinSDK 8.1 or later.)
  #
  #	OLE interface: OLE=yes (usually with GUI=yes)
  #
- #	Multibyte support: MBYTE=yes (default is yes for NORMAL, BIG, HUGE)
- #
  #	IME support: IME=yes	(requires GUI=yes)
  #	  DYNAMIC_IME=[yes or no]  (to load the imm32.dll dynamically, default
  #	  is yes)
--- 26,38 ----
  #	GUI interface: GUI=yes (default is no)
  #
  #	GUI with DirectWrite (DirectX): DIRECTX=yes
! #	  (default is yes if GUI=yes, requires GUI=yes)
  #
  #	Color emoji support: COLOR_EMOJI=yes
  #	  (default is yes if DIRECTX=yes, requires WinSDK 8.1 or later.)
  #
  #	OLE interface: OLE=yes (usually with GUI=yes)
  #
  #	IME support: IME=yes	(requires GUI=yes)
  #	  DYNAMIC_IME=[yes or no]  (to load the imm32.dll dynamically, default
  #	  is yes)
***************
*** 786,796 ****
  !if "$(GIME)" == "yes"
  CFLAGS = $(CFLAGS) -DGLOBAL_IME
  OBJ = $(OBJ) $(OUTDIR)\dimm_i.obj $(OUTDIR)\glbl_ime.obj
- MBYTE = yes
- !endif
- 
- !if "$(MBYTE)" == "yes"
- CFLAGS = $(CFLAGS) -DFEAT_MBYTE
  !endif
  
  !if "$(GUI)" == "yes"
--- 784,789 ----
*** ../vim-8.1.0732/src/version.c	2019-01-12 15:15:34.089783011 +0100
--- src/version.c	2019-01-12 16:08:27.332316512 +0100
***************
*** 797,798 ****
--- 797,800 ----
  {   /* Add new patch number below this line */
+ /**/
+     733,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
172. You join listservers just for the extra e-mail.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///