Peter Stephenson
48d6402e65
rationalise mb<->wc conversions to use restartable form
2006-08-03 15:37:49 +00:00
Peter Stephenson
bb912594b2
22575: multibyte fixes for bslashquote(), getzlequery()
2006-08-01 21:28:04 +00:00
Peter Stephenson
b9bf52d1fc
fix typos in 22556
2006-07-25 09:25:26 +00:00
Peter Stephenson
50e9ab122b
22556: Multibyte separators and delimiters
2006-07-24 22:00:19 +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
Peter Stephenson
6157c14d06
22525: lengths and cases of multibyte strings in parameters and history
2006-06-28 13:12:55 +00:00
Peter Stephenson
ec1274f0a3
22522: infinite loop with invalid character in mb_metastrlen()
2006-06-27 12:00:43 +00:00
Peter Stephenson
05bd0b2dd1
22518: Initial go at making parameter subscripts
...
use multibyte characters.
2006-06-26 18:17:31 +00:00
Peter Stephenson
11836eb5e3
22484: support varargs.h in addition to stdarg.h
2006-06-05 16:55:38 +00:00
Peter Stephenson
dd5602f59b
22474: use variable argument lists to improve error message handling
2006-05-30 22:35:03 +00:00
Peter Stephenson
ef330a5dfd
22408: support for multibyte characters in patterns
2006-04-09 21:47:21 +00:00
Wayne Davison
4cb83571c4
Changed some structures to avoid gcc's type-punned warnings.
2006-03-07 21:30:36 +00:00
Wayne Davison
c1f0a1200a
Added "mod_export" to the declaration of makecommaspecial().
2006-03-01 14:50:52 +00:00
Wayne Davison
a4d4cf5cf8
Added the makecommaspecial() routine that completion uses when
...
it is completing filenames into an open brace list.
2006-02-13 10:59:22 +00:00
Peter Stephenson
8b0cc87817
22195: don't set HOME in the shell
2006-02-06 11:57:03 +00:00
Wayne Davison
78ddb65f6c
Got rid of some superfluous STOUC() calls (such as the ones I added
...
for the arg of calls to nicechar(), which doesn't need this).
2006-01-13 17:13:49 +00:00
Wayne Davison
e46d08523f
- The return value of mbsrtowcs() is also a size_t (like mbrtowc()).
...
- When mbrtowc() returns -2 when given all the remaining chars in a
string, set an end-of-line flag and avoid calling mbrtowc() again
for any of the incomplete characters that remain in the string.
- Use "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
-1 and -2 values (respectively).
2006-01-12 00:51:44 +00:00
Wayne Davison
4c3edda1f1
Decided to use a switch() in mb_niceformat().
2006-01-11 20:09:03 +00:00
Wayne Davison
23bd860ef7
The return value of mbrtowc() is a size_t (unsigned), so don't
...
assign it to an int and then check if it's <= 0, as that won't
work on a system where an int is larger than a size_t.
2006-01-11 20:01:27 +00:00
Wayne Davison
cc890edcb5
Changed the name of the "ret" variable in mb_niceformat() to "cnt"
...
because "ret" is usually used for a variable name to hold the
return value of the function. Also, changed the test when
checking for a \0 to one that checks if "cnt" is 0, since we
must always change a value of 0 to 1.
2006-01-09 17:44:02 +00:00
Wayne Davison
97c34b631c
Changed mb_niceformat() so that it does not truncate a name that
...
has an invalid character sequence in the current character set,
displaying them as \M-... chars. (Improved version of the patch
from workers/22140.)
2006-01-08 22:57:05 +00:00
Wayne Davison
2367a62e4c
Changed wcswidth(&c, 1) to wcwidth(c).
2006-01-08 22:36:08 +00:00
Peter Stephenson
f7037211ad
22085 and back off 22075: include langinfo.h to get iconv
2005-12-15 14:51:39 +00:00
Wayne Davison
3cb9df7bc7
Changed ucs4toutf8() into a static function (since it's only
...
used by this file when it's even defined).
2005-12-14 23:10:12 +00:00
Peter Stephenson
12f20954e9
22075: assume we can convert characters with wctomb() with --enable-multibyte
2005-12-14 18:28:53 +00:00
Wayne Davison
9483fd8a14
One more fix for the non-multibyte prototype generation.
2005-11-30 16:35:33 +00:00
Geoff Wing
fac5d69b8b
fix utils.c prototype generation for non multibyte build
2005-11-29 01:43:14 +00:00
Wayne Davison
01875dc4a1
Changed ztrcmp() to take normal char pointers, not unsigned char.
2005-11-15 08:44:24 +00:00
Wayne Davison
dbac6846fa
- Added the wcsiblank() function for wide-char blank-checking that
...
does not match '\n'.
- Fixed a couple calls to isascii() that were passing a "char" value.
2005-11-01 02:50:24 +00:00
Peter Stephenson
aea7715261
21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;
...
use multibyte versions of nicechar wherever possible.
2005-10-28 17:34:33 +00:00
Peter Stephenson
4ca967e200
21882: extend prompt truncation to handle multibyte characters
2005-10-19 08:39:02 +00:00
Peter Stephenson
3c37057c34
21871: replace INULL() by inull()
2005-10-13 16:30:13 +00:00
Peter Stephenson
c1b01cfba2
21809: need to export nicedup()
2005-10-03 09:09:58 +00:00
Wayne Davison
d84c522b49
Changed the PROMPT_SP output to use prompt-escape %# instead of just #.
2005-10-01 19:19:06 +00:00
Peter Stephenson
046f4cf49e
21784: Improved character widths for formatted multibyte character output
2005-09-29 17:32:34 +00:00
Peter Stephenson
f3c0df36be
21769: fix some consequences of 21730 in completion lists
2005-09-27 14:30:30 +00:00
Wayne Davison
0945e20323
The PROMPT_SP code now ensures that PROMPT_PERCENT is enabled when
...
it uses promptexpand() to expand some percent strings. (21739)
2005-09-20 16:33:01 +00:00
Peter Stephenson
29bb2438c0
unposted: fix wcsiident
2005-09-20 15:41:22 +00:00
Peter Stephenson
33c9432d56
21737: unmetafy wordchars before looking for multibyte characters
2005-09-20 15:19:06 +00:00
Peter Stephenson
409296e22f
21736: improve tests for word and identifier characters with multibyte input
2005-09-20 15:10:26 +00:00
Peter Stephenson
dc060607e9
21730: fix metafication of nicechar and pwd
2005-09-17 18:23:49 +00:00
Peter Stephenson
d33c6e502a
21722: fix multibyte word stuff
2005-09-09 20:34:42 +00:00
Wayne Davison
610a691e1c
Marked some #ifdef ZLE_UNICODE_SUPPORT lines (and their #endif lines)
...
with /**/ so that they would get copied to the .epro file.
2005-08-17 19:17:40 +00:00
Clint Adams
987033eaf9
21619: define wide versions of zarrdup, zputs, niceztrlen.
2005-08-15 17:19:16 +00:00
Peter Stephenson
2a888b3d5a
c.f. 21590: metafy_line()/unmetafy_line() now support wide characters
2005-08-10 10:56:40 +00:00
Peter Stephenson
aa638fec26
21577 (adapted): Dan Bullok: improved window resize handling, again
2005-08-09 09:33:37 +00:00
Peter Stephenson
d7902f6bad
21567: Dan Bullok: trashzle on updating window size
2005-08-08 10:36:51 +00:00
Wayne Davison
4714ce0856
The PROMPT_SP output should be prior to the job notifications too.
2005-07-27 18:44:26 +00:00
Wayne Davison
cbdcd62b38
Moved the PROMPT_SP output into preprompt() so that it takes effect
...
prior to things like precmd(), the mail-check output, etc.
2005-07-26 22:50:49 +00:00