Commit graph

53 commits

Author SHA1 Message Date
Jun-ichi Takimoto 0e25f1cb4d 40470: make the test work also with ASCII collation
a few OSs (macOS and some versions of BSDs) use ASCII collation even if
UTF-8 locale is in use
2017-02-01 10:42:45 +09:00
Mikael Magnusson 0e33ebc651 posted: Make D07 recognize more spellings of pl_PL.UTF-8
FreeBSD and probably others use this spelling in locale -a output, while
glibc uses the utf8 spelling.
2017-01-24 16:22:39 +01:00
Peter Stephenson 063391f0d9 unposted: minor D07 typos 2016-12-09 10:31:47 +00:00
Peter Stephenson 2e307108a0 40138: Move regex multibyte test.
Put it last as it has an additional dependency.

Output a failure message indicating this.
2016-12-09 10:18:24 +00:00
Peter Stephenson 7e7e2d7e63 39678: metafication of printf %q argument and result 2016-10-19 10:39:58 +01:00
Peter Stephenson 72e5fe7aab 38879: Unmetafy file names for glob sort.
Test using Polish UTF-8 collation sequence that'w known to
cause the problems.
2016-07-18 16:57:38 +01:00
Peter Stephenson dcffad8326 38586: Metafication problem with $functions
If treated as a complete associative array or scanned (retrieving
individual values was not affected), it incorrectly unmetafied
the value so multibyte characters got confused.

Add test.
2016-06-03 10:28:52 +01:00
Peter Stephenson 7f5b2f5709 37348: Tests and fix for ${(q+)...}.
Needs dupstring() for empty string case.
2015-12-08 15:08:24 +00:00
Barton E. Schaefer b1688305cc 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
Peter Stephenson cc44b10da1 unposted: fix typo in test 2015-09-19 20:22:19 +01:00
Jun-ichi Takimoto 8b1676e3b7 36491: Multibyte support for parameter expansion flags B,E,N 2015-09-12 20:35:56 +09:00
Peter Stephenson e86b3cce47 36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests. 2015-09-10 20:05:48 +01:00
Peter Stephenson f52795ea3e 36415: remap bytes from invalid multibyte characters.
These now go to 0xdc00 + index.  If wchar_t is a Unicode code point,
this is by construction an invalid character within the Unicode range.
If it isn't, we would hope the result was no worse than the current
fudge.
2015-09-04 10:07:51 +01:00
Peter Stephenson 61afb8dc8d 36262: Replace fix for missing unmeta in chdir().
It was needed in the argument to one of a pair of lchdir()s rather
than within zchdir().

Add tests for the case of a character with 0x83 within it.
2015-08-21 10:04:13 +01:00
Peter Stephenson 541e7ad68c unposted: another ZTST_skip 2015-07-10 15:50:01 +01:00
Peter Stephenson f1923bdfa6 Add non-metafied character length handling.
Use this in regex module and add test using $'\ua0'.

Rename mb_metacharinit() to mb_charinit() as it does not involve
metafied characters.
2015-06-12 09:30:39 +01:00
Peter Stephenson bfac7f09df 35374: tab expansion with double width characters 2015-06-03 09:58:18 +01:00
Peter Stephenson b237ba0a8e 34587: ensure multibyte characters don't overflow.
They could start incorporating tokens, with bad karma.

Add test.
2015-02-20 16:25:54 +00:00
Peter Stephenson af5a85f363 28339: backslash-newline history without HIST_LEX_WORDS
28340: assignment to range of scalar variable with multibyte characters
2010-10-10 17:51:29 +00:00
Peter Stephenson 72f0b14a04 27188: improve read -q by using read -k code 2009-07-24 18:35:49 +00:00
Peter Stephenson ff0b4ebdd5 26950: warn on failed attempt to change user or group ID
26593: print warning but dont fail test if simple Unicode conversion fails
2009-05-08 14:30:31 +00:00
Peter Stephenson a6ff95d0c1 26954: read should pass through invalid multibyte characters 2009-05-07 16:04:21 +00:00
Peter Stephenson d853f4cd12 26895: restrict multibyte sorting test to western European charcters 2009-04-30 08:37:12 +00:00
Peter Stephenson f91d89ccf8 Paul Ackersviller: 26883: naming of UTF8 locales on HPUX 2009-04-26 19:43:24 +00:00
Peter Stephenson e391f09457 26705: multibyte characters with Meta in ${(%)foo} etc. 2009-03-10 11:12:02 +00:00
Peter Stephenson 25833cc89e 25969: two bugs with metafication plus a test for one 2008-10-30 15:34:18 +00:00
Peter Stephenson 96a1f68875 25911: see if we can work around multibyte problems in file system 2008-10-18 16:03:17 +00:00
Peter Stephenson d25c551c2c 25845: fix pattern but with backslashed and metafied charaters 2008-10-11 22:16:01 +00:00
Peter Stephenson a34d483b8d 24736: a couple more tests failing on Solaris 2008-03-26 15:26:20 +00:00
Peter Stephenson 6cc9c89d89 24673: another attempt to sort characters the same way on multiple UTF-8
implementations
2008-03-03 16:14:52 +00:00
Peter Stephenson 3dd3f72bd9 24618: avoid problems with sorting of UTF-8 characters by using sort 2008-02-27 20:03:21 +00:00
Peter Stephenson 20607774dc 24275: fixes for multibyte characters on Solaris 2007-12-17 17:11:29 +00:00
Peter Stephenson 1e836045b3 24070: some \u fixes in getkeystring() 2007-11-06 20:45:07 +00:00
Peter Stephenson 749951e03d 23792: test and documentation for improved backslash quoting 2007-08-22 10:46:40 +00:00
Peter Stephenson abae4fe16e 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 2007-06-18 13:25:03 +00:00
Peter Stephenson 5c44b0a472 unposted: stop multibyte test files from cluttering up directory 2007-06-16 17:57:22 +00:00
Peter Stephenson 52e5a75a7a 23486: use {fd} syntax to get fd's for tests 2007-05-29 14:50:28 +00:00
Peter Stephenson 7bb711a3d6 23278: fix NUMERICGLOBSORT, broken by multibyte fixes 2007-04-15 21:42:42 +00:00
Peter Stephenson 0a532a8f7f fix metafication of ${(#)x} 2007-02-10 22:12:58 +00:00
Peter Stephenson e375d5ee88 23119: lower case in sorting properly 2007-01-22 14:35:12 +00:00
Peter Stephenson de815e3d22 23098: printf multibyte character widths 2007-01-09 21:45:45 +00:00
Peter Stephenson f367a90505 22980: 22952 messed up parameter padding flag optional arguments 2006-11-07 22:47:07 +00:00
Peter Stephenson d8207acddb 22952: fix some argument delimiters to work with multibyte characters 2006-11-02 18:43:19 +00:00
Peter Stephenson a242b1eb35 22705: make ${(l...)...} and ${(r...)...} handle multibyte characters 2006-09-13 20:55:29 +00:00
Peter Stephenson 663b9376ad 22562: make ${...#...} etc. understand multibyte characters 2006-07-30 18:00:37 +00:00
Peter Stephenson 09bc7ee2b5 22557: turn on multibyte option by default 2006-07-25 18:10:37 +00:00
Peter Stephenson 50e9ab122b 22556: Multibyte separators and delimiters 2006-07-24 22:00:19 +00:00
Peter Stephenson 0a22eb0e0c 22546: fix {myfd}>... bug and tweak tests 2006-07-11 15:36:37 +00:00
Peter Stephenson 4a67f24798 22544: Improve use of ztype tests for multibyte characters. Add
POSIX_IDENTIFIERS option to control allowability of multibyte
alphanumeric characters in parameter and module names.
2006-07-10 13:08:22 +00:00
Peter Stephenson 4cd7b957f3 22529: multibyte conversion in math expressions 2006-06-30 09:41:34 +00:00