summary refs log tree commit diff
path: root/Src/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Added the makecommaspecial() routine that completion uses whenWayne Davison2006-02-131-0/+14
| | | | it is completing filenames into an open brace list.
* 22195: don't set HOME in the shellPeter Stephenson2006-02-061-2/+2
|
* Got rid of some superfluous STOUC() calls (such as the ones I addedWayne Davison2006-01-131-5/+4
| | | | for the arg of calls to nicechar(), which doesn't need this).
* - The return value of mbsrtowcs() is also a size_t (like mbrtowc()).Wayne Davison2006-01-121-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).
* Decided to use a switch() in mb_niceformat().Wayne Davison2006-01-111-7/+12
|
* The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-111-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.
* Changed the name of the "ret" variable in mb_niceformat() to "cnt"Wayne Davison2006-01-091-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.
* Changed mb_niceformat() so that it does not truncate a name thatWayne Davison2006-01-081-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.)
* Changed wcswidth(&c, 1) to wcwidth(c).Wayne Davison2006-01-081-1/+1
|
* 22085 and back off 22075: include langinfo.h to get iconvPeter Stephenson2005-12-151-3/+3
|
* Changed ucs4toutf8() into a static function (since it's onlyWayne Davison2005-12-141-2/+1
| | | | used by this file when it's even defined).
* 22075: assume we can convert characters with wctomb() with --enable-multibytePeter Stephenson2005-12-141-3/+3
|
* One more fix for the non-multibyte prototype generation.Wayne Davison2005-11-301-0/+2
|
* fix utils.c prototype generation for non multibyte buildGeoff Wing2005-11-291-0/+2
|
* Changed ztrcmp() to take normal char pointers, not unsigned char.Wayne Davison2005-11-151-17/+19
|
* - Added the wcsiblank() function for wide-char blank-checking thatWayne Davison2005-11-011-2/+12
| | | | | does not match '\n'. - Fixed a couple calls to isascii() that were passing a "char" value.
* 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;Peter Stephenson2005-10-281-28/+32
| | | | use multibyte versions of nicechar wherever possible.
* 21882: extend prompt truncation to handle multibyte charactersPeter Stephenson2005-10-191-0/+43
|
* 21871: replace INULL() by inull()Peter Stephenson2005-10-131-1/+3
|
* 21809: need to export nicedup()Peter Stephenson2005-10-031-1/+1
|
* Changed the PROMPT_SP output to use prompt-escape %# instead of just #.Wayne Davison2005-10-011-2/+2
|
* 21784: Improved character widths for formatted multibyte character outputPeter Stephenson2005-09-291-75/+203
|
* 21769: fix some consequences of 21730 in completion listsPeter Stephenson2005-09-271-1/+1
|
* The PROMPT_SP code now ensures that PROMPT_PERCENT is enabled whenWayne Davison2005-09-201-1/+5
| | | | it uses promptexpand() to expand some percent strings. (21739)
* unposted: fix wcsiidentPeter Stephenson2005-09-201-1/+1
|
* 21737: unmetafy wordchars before looking for multibyte charactersPeter Stephenson2005-09-201-5/+8
|
* 21736: improve tests for word and identifier characters with multibyte inputPeter Stephenson2005-09-201-6/+92
|
* 21730: fix metafication of nicechar and pwdPeter Stephenson2005-09-171-15/+33
|
* 21722: fix multibyte word stuffPeter Stephenson2005-09-091-0/+36
|
* Marked some #ifdef ZLE_UNICODE_SUPPORT lines (and their #endif lines)Wayne Davison2005-08-171-0/+8
| | | | with /**/ so that they would get copied to the .epro file.
* 21619: define wide versions of zarrdup, zputs, niceztrlen.Clint Adams2005-08-151-0/+101
|
* c.f. 21590: metafy_line()/unmetafy_line() now support wide charactersPeter Stephenson2005-08-101-1/+1
|
* 21577 (adapted): Dan Bullok: improved window resize handling, againPeter Stephenson2005-08-091-1/+2
|
* 21567: Dan Bullok: trashzle on updating window sizePeter Stephenson2005-08-081-1/+1
|
* The PROMPT_SP output should be prior to the job notifications too.Wayne Davison2005-07-271-7/+7
|
* Moved the PROMPT_SP output into preprompt() so that it takes effectWayne Davison2005-07-261-0/+9
| | | | prior to things like precmd(), the mail-check output, etc.
* If getkeystring() finds a \c escape (when looking for such escapes),Wayne Davison2005-07-261-1/+3
| | | | truncate the returned string at the escape.
* Improved the function comment for getkeystring().Wayne Davison2005-07-241-10/+11
|
* Added missing "goto" in handling of 'c' escape (fix fromWayne Davison2005-07-241-0/+2
| | | | Thorsten Dahlheimer).
* 21049: Don't close process substitution file descriptors for external programmesPeter Stephenson2005-03-311-5/+6
|
* Belated commit of 20892: improvements to correct/correctall behavior.Bart Schaefer2005-03-111-13/+48
|
* 20921: using UCS-4BE instead of ISO-10646 to identify character encodingOliver Kiddle2005-03-031-3/+3
| | | | | is more portable, find more encodings in iconv completion on Solaris 20924: make error message more specific
* 20863: fix history (i)searching for UnicodePeter Stephenson2005-02-251-30/+0
|
* 20862: attempt to fix configure scripts to detect iconv properlyOliver Kiddle2005-02-241-6/+6
|
* 20844: prune trailing slashes from named directoryPeter Stephenson2005-02-221-1/+13
|
* 20759, 20760, 20765: Improve Cygwin configurationPeter Stephenson2005-02-011-2/+2
|
* c.f. 20675: improve zle as a basis for Unicode.Peter Stephenson2005-01-141-14/+3
| | | | unposted: update version to 4.2.3-dev-1
* 20572: Allow alternative signal namesPeter Stephenson2004-11-221-21/+0
|
* Added gettempfile(), which works like a custom mkstemp() (in additionWayne Davison2004-10-211-0/+41
| | | | to the existing gettempname(), which works like a custom mktemp()).
* Made gettempname() take a prefix arg and a use_heap arg. When prefix isWayne Davison2004-10-181-9/+15
| | | | non-NULL, it uses the specified prefix instead of $TMPPREFIX.