Subject: patch 5.4.16 (was: vim54 - missing locale in src/configure)
From: Bram Moolenaar <[email-masked]>
To: Chih-Tsun Huang <[email-masked]>
Cc: [email-masked], [email-masked]

------------

Chih-Tsun Huang wrote:

> Sorry if this is mentioned before.

Didn't see it before.

> The src/configure will check which locale can be used for multibyte.
> There are zh_TW.BIG5 but no zh_TW.Big5.  Both of them are implemented
> in the Chinese world, however.
> This will not cause any problem except configure will not find the
> locale and use broken locale option.
> Here is the patch (simply adding the missing locale):

Ok.  But configure.in also needs to be changed, otherwise it's lost when
autoconf is run.

Patch 5.4.16
Problem:    Multibyte: Locale zh_TW.Big5 was not checked for in configure.
Solution:   Add zh_TW.Big5 to configure check. (Chih-Tsun Huang)
Files:	    src/configure.in, src/configure

*** ../vim-5.4/src/configure.in	Sun Jul 25 22:02:06 1999
--- src/configure.in	Sun Aug  8 14:42:56 1999
***************
*** 1235,1241 ****
  		  japan japanese japanese.ujis ja_JP.PCK \
  		  ko ko_KR ko_KR.euc ko_KR.eucKR ko_KR.EUC korean \
  		  zh zh_CN zh_TW zh_CN.euc zh_TW.euc zh_CN.eucCN zh_TW.eucTW \
! 		  zh.GBK zh_TW.BIG zh_TW.BIG5 zh_TW.EUC zh_CN.EUC
      do
        if ./localetest $locale
        then
--- 1244,1250 ----
  		  japan japanese japanese.ujis ja_JP.PCK \
  		  ko ko_KR ko_KR.euc ko_KR.eucKR ko_KR.EUC korean \
  		  zh zh_CN zh_TW zh_CN.euc zh_TW.euc zh_CN.eucCN zh_TW.eucTW \
! 		  zh.GBK zh_TW.BIG zh_TW.Big5 zh_TW.BIG5 zh_TW.EUC zh_CN.EUC
      do
        if ./localetest $locale
        then
*** ../vim-5.4/src/configure	Sun Jul 25 22:02:06 1999
--- src/configure	Sun Aug  8 14:44:58 1999
***************
*** 5021,5033 ****
    if test "$locale_skip" = "0"
    then
      echo $ac_n "checking what locale you can use for multibyte""... $ac_c" 1>&6
! echo "configure:5025: checking what locale you can use for multibyte" >&5
      av_locale=""
      for locale in ja ja_JP ja_JP.ujis ja_JP.eucJP ja_JP.EUC ja_JP.sjis ja.SJIS \
  		  japan japanese japanese.ujis ja_JP.PCK \
  		  ko ko_KR ko_KR.euc ko_KR.eucKR ko_KR.EUC korean \
  		  zh zh_CN zh_TW zh_CN.euc zh_TW.euc zh_CN.eucCN zh_TW.eucTW \
! 		  zh.GBK zh_TW.BIG zh_TW.BIG5 zh_TW.EUC zh_CN.EUC
      do
        if ./localetest $locale
        then
--- 5044,5056 ----
    if test "$locale_skip" = "0"
    then
      echo $ac_n "checking what locale you can use for multibyte""... $ac_c" 1>&6
! echo "configure:5048: checking what locale you can use for multibyte" >&5
      av_locale=""
      for locale in ja ja_JP ja_JP.ujis ja_JP.eucJP ja_JP.EUC ja_JP.sjis ja.SJIS \
  		  japan japanese japanese.ujis ja_JP.PCK \
  		  ko ko_KR ko_KR.euc ko_KR.eucKR ko_KR.EUC korean \
  		  zh zh_CN zh_TW zh_CN.euc zh_TW.euc zh_CN.eucCN zh_TW.eucTW \
! 		  zh.GBK zh_TW.BIG zh_TW.Big5 zh_TW.BIG5 zh_TW.EUC zh_CN.EUC
      do
        if ./localetest $locale
        then
*** ../vim-5.4/src/version.h	Sat Aug  7 22:10:31 1999
--- src/version.h	Sun Aug  8 14:46:41 1999
***************
*** 19,26 ****
  #define VIM_VERSION_MINOR_STR		"4"
  #define VIM_VERSION_BUILD		 57
  #define VIM_VERSION_BUILD_STR		"57"
! #define VIM_VERSION_PATCHLEVEL		 15
! #define VIM_VERSION_PATCHLEVEL_STR	"15"
  
  /*
   * VIM_VERSION_NODOT is used for the runtime directory name.
--- 19,26 ----
  #define VIM_VERSION_MINOR_STR		"4"
  #define VIM_VERSION_BUILD		 57
  #define VIM_VERSION_BUILD_STR		"57"
! #define VIM_VERSION_PATCHLEVEL		 16
! #define VIM_VERSION_PATCHLEVEL_STR	"16"
  
  /*
   * VIM_VERSION_NODOT is used for the runtime directory name.
***************
*** 30,35 ****
   */
  #define VIM_VERSION_NODOT	"vim54"
  #define VIM_VERSION_SHORT	"5.4"
! #define VIM_VERSION_MEDIUM	"5.4.15"
! #define VIM_VERSION_LONG	"VIM - Vi IMproved 5.4.15 (1999 Aug 7)"
! #define VIM_VERSION_LONG_DATE	"VIM - Vi IMproved 5.4.15 (1999 Aug 7, compiled "
--- 30,35 ----
   */
  #define VIM_VERSION_NODOT	"vim54"
  #define VIM_VERSION_SHORT	"5.4"
! #define VIM_VERSION_MEDIUM	"5.4.16"
! #define VIM_VERSION_LONG	"VIM - Vi IMproved 5.4.16 (1999 Aug 8)"
! #define VIM_VERSION_LONG_DATE	"VIM - Vi IMproved 5.4.16 (1999 Aug 8, compiled "

--
BLACK KNIGHT: None shall pass.
ARTHUR:       I have no quarrel with you, brave Sir knight, but I must cross
              this bridge.
BLACK KNIGHT: Then you shall die.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

--/-/---- Bram Moolenaar ---- [email-masked] ---- [email-masked] ---\-\--
  \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /