mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.2086
Problem: Using the system default encoding makes tests unpredictable.
Solution: Always use utf-8 or latin1 in the new style tests. Remove setting
encoding and scriptencoding where it is not needed.
ac105ed3c4
This commit is contained in:
parent
42736d6a2a
commit
0de6f450e4
@ -42,6 +42,14 @@ endif
|
||||
" This also enables use of line continuation.
|
||||
set viminfo+=nviminfo
|
||||
|
||||
" Use utf-8 or latin1 be default, instead of whatever the system default
|
||||
" happens to be. Individual tests can overrule this at the top of the file.
|
||||
if has('multi_byte')
|
||||
set encoding=utf-8
|
||||
else
|
||||
set encoding=latin1
|
||||
endif
|
||||
|
||||
" Avoid stopping at the "hit enter" prompt
|
||||
set nomore
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
if !has('multi_byte')
|
||||
finish
|
||||
endif
|
||||
scriptencoding utf-8
|
||||
|
||||
func Test_strgetchar_utf8()
|
||||
call assert_equal(char2nr('á'), strgetchar('áxb', 0))
|
||||
|
@ -1,5 +1,4 @@
|
||||
" Tests for regexp in utf8 encoding
|
||||
scriptencoding utf-8
|
||||
|
||||
func s:equivalence_test()
|
||||
let str = "AÀÁÂÃÄÅĀĂĄǍǞǠẢ BḂḆ CÇĆĈĊČ DĎĐḊḎḐ EÈÉÊËĒĔĖĘĚẺẼ FḞ GĜĞĠĢǤǦǴḠ HĤĦḢḦḨ IÌÍÎÏĨĪĬĮİǏỈ JĴ KĶǨḰḴ LĹĻĽĿŁḺ MḾṀ NÑŃŅŇṄṈ OÒÓÔÕÖØŌŎŐƠǑǪǬỎ PṔṖ Q RŔŖŘṘṞ SŚŜŞŠṠ TŢŤŦṪṮ UÙÚÛÜŨŪŬŮŰŲƯǓỦ VṼ WŴẀẂẄẆ XẊẌ YÝŶŸẎỲỶỸ ZŹŻŽƵẐẔ aàáâãäåāăąǎǟǡả bḃḇ cçćĉċč dďđḋḏḑ eèéêëēĕėęěẻẽ fḟ gĝğġģǥǧǵḡ hĥħḣḧḩẖ iìíîïĩīĭįǐỉ jĵǰ kķǩḱḵ lĺļľŀłḻ mḿṁ nñńņňʼnṅṉ oòóôõöøōŏőơǒǫǭỏ pṕṗ q rŕŗřṙṟ sśŝşšṡ tţťŧṫṯẗ uùúûüũūŭůűųưǔủ vṽ wŵẁẃẅẇẘ xẋẍ yýÿŷẏẙỳỷỹ zźżžƶẑẕ"
|
||||
|
@ -2,7 +2,6 @@
|
||||
if !has('multi_byte')
|
||||
finish
|
||||
endif
|
||||
scriptencoding utf-8
|
||||
|
||||
if !has('visual')
|
||||
finish
|
||||
|
@ -356,7 +356,7 @@ static int included_patches[] = {
|
||||
// 2089 NA
|
||||
// 2088,
|
||||
// 2087,
|
||||
// 2086,
|
||||
2086,
|
||||
// 2085,
|
||||
// 2084,
|
||||
// 2083,
|
||||
|
Loading…
Reference in New Issue
Block a user