summaryrefslogtreecommitdiff
path: root/Src/utils.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-1122599: use wide character widths in completionPeter Stephenson1-3/+8
2006-08-0422586: fix warnings spotted on CygwinPeter Stephenson1-1/+9
2006-08-0422585: fix zsh.exportsPeter Stephenson1-2/+2
2006-08-03rationalise mb<->wc conversions to use restartable formPeter Stephenson1-33/+31
2006-08-0122575: multibyte fixes for bslashquote(), getzlequery()Peter Stephenson1-112/+138
2006-07-25fix typos in 22556Peter Stephenson1-1/+3
2006-07-2422556: Multibyte separators and delimitersPeter Stephenson1-141/+261
2006-07-1022544: Improve use of ztype tests for multibyte characters. AddPeter Stephenson1-10/+84
POSIX_IDENTIFIERS option to control allowability of multibyte alphanumeric characters in parameter and module names.
2006-06-3022529: multibyte conversion in math expressionsPeter Stephenson1-0/+11
2006-06-2822525: lengths and cases of multibyte strings in parameters and historyPeter Stephenson1-5/+15
2006-06-2722522: infinite loop with invalid character in mb_metastrlen()Peter Stephenson1-2/+2
2006-06-2622518: Initial go at making parameter subscriptsPeter Stephenson1-0/+106
use multibyte characters.
2006-06-0522484: support varargs.h in addition to stdarg.hPeter Stephenson1-20/+44
2006-05-3022474: use variable argument lists to improve error message handlingPeter Stephenson1-43/+79
2006-04-0922408: support for multibyte characters in patternsPeter Stephenson1-1/+1
2006-03-07Changed some structures to avoid gcc's type-punned warnings.Wayne Davison1-8/+8
2006-03-01Added "mod_export" to the declaration of makecommaspecial().Wayne Davison1-1/+1
2006-02-13Added the makecommaspecial() routine that completion uses whenWayne Davison1-0/+14
it is completing filenames into an open brace list.
2006-02-0622195: don't set HOME in the shellPeter Stephenson1-2/+2
2006-01-13Got rid of some superfluous STOUC() calls (such as the ones I addedWayne Davison1-5/+4
for the arg of calls to nicechar(), which doesn't need this).
2006-01-12- The return value of mbsrtowcs() is also a size_t (like mbrtowc()).Wayne Davison1-21/+33
- 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-11Decided to use a switch() in mb_niceformat().Wayne Davison1-7/+12
2006-01-11The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-6/+6
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-09Changed the name of the "ret" variable in mb_niceformat() to "cnt"Wayne Davison1-8/+8
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-08Changed mb_niceformat() so that it does not truncate a name thatWayne Davison1-15/+14
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-08Changed wcswidth(&c, 1) to wcwidth(c).Wayne Davison1-1/+1
2005-12-1522085 and back off 22075: include langinfo.h to get iconvPeter Stephenson1-3/+3
2005-12-14Changed ucs4toutf8() into a static function (since it's onlyWayne Davison1-2/+1
used by this file when it's even defined).
2005-12-1422075: assume we can convert characters with wctomb() with --enable-multibytePeter Stephenson1-3/+3
2005-11-30One more fix for the non-multibyte prototype generation.Wayne Davison1-0/+2
2005-11-29fix utils.c prototype generation for non multibyte buildGeoff Wing1-0/+2
2005-11-15Changed ztrcmp() to take normal char pointers, not unsigned char.Wayne Davison1-17/+19
2005-11-01- Added the wcsiblank() function for wide-char blank-checking thatWayne Davison1-2/+12
does not match '\n'. - Fixed a couple calls to isascii() that were passing a "char" value.
2005-10-2821943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;Peter Stephenson1-28/+32
use multibyte versions of nicechar wherever possible.
2005-10-1921882: extend prompt truncation to handle multibyte charactersPeter Stephenson1-0/+43
2005-10-1321871: replace INULL() by inull()Peter Stephenson1-1/+3
2005-10-0321809: need to export nicedup()Peter Stephenson1-1/+1
2005-10-01Changed the PROMPT_SP output to use prompt-escape %# instead of just #.Wayne Davison1-2/+2
2005-09-2921784: Improved character widths for formatted multibyte character outputPeter Stephenson1-75/+203
2005-09-2721769: fix some consequences of 21730 in completion listsPeter Stephenson1-1/+1
2005-09-20The PROMPT_SP code now ensures that PROMPT_PERCENT is enabled whenWayne Davison1-1/+5
it uses promptexpand() to expand some percent strings. (21739)
2005-09-20unposted: fix wcsiidentPeter Stephenson1-1/+1
2005-09-2021737: unmetafy wordchars before looking for multibyte charactersPeter Stephenson1-5/+8
2005-09-2021736: improve tests for word and identifier characters with multibyte inputPeter Stephenson1-6/+92
2005-09-1721730: fix metafication of nicechar and pwdPeter Stephenson1-15/+33
2005-09-0921722: fix multibyte word stuffPeter Stephenson1-0/+36
2005-08-17Marked some #ifdef ZLE_UNICODE_SUPPORT lines (and their #endif lines)Wayne Davison1-0/+8
with /**/ so that they would get copied to the .epro file.
2005-08-1521619: define wide versions of zarrdup, zputs, niceztrlen.Clint Adams1-0/+101
2005-08-10c.f. 21590: metafy_line()/unmetafy_line() now support wide charactersPeter Stephenson1-1/+1
2005-08-0921577 (adapted): Dan Bullok: improved window resize handling, againPeter Stephenson1-1/+2