1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00
Commit graph

278 commits

Author SHA1 Message Date
Peter Stephenson
4c7bb13f63 24596: use "US-ASCII" as charset if nl_langinfo(CODESET) returns "" or "646" 2008-02-26 16:19:33 +00:00
Peter Stephenson
f674ea76d2 24592: make types of charset conversion failure more explicit 2008-02-26 14:50:00 +00:00
Peter Stephenson
b5570971ef 24460: make zpty -rt more consistent by polling before every byte 2008-01-25 16:48:22 +00:00
Peter Stephenson
ac33044bd2 unposted: suppress harmless warning 2007-12-17 18:34:25 +00:00
Peter Stephenson
6e58a1df8f 24197: interface to ztrftime() for insufficient memory was broken 2007-12-09 14:58:36 +00:00
Peter Stephenson
cefc0d927f 24179: use queue_signals() for 24170
24180: back off strerror_r() patch, except for use of temporary var
2007-12-07 11:34:47 +00:00
Peter Stephenson
61320c44c1 24148: attempt to use strerror_r() to make errors in signal handle safer 2007-12-03 22:46:10 +00:00
Peter Stephenson
a47971f5b7 add some mod_export tags where needed 2007-11-20 09:55:09 +00:00
Peter Stephenson
1e836045b3 24070: some \u fixes in getkeystring() 2007-11-06 20:45:07 +00:00
Wayne Davison
ed1195ba58 Fixed the use of an uninitialized 'x' in spckword() if shout is NULL. 2007-10-31 06:22:57 +00:00
Peter Stephenson
6567e77a4e 24007: prompt allocation and use of "shout" 2007-10-22 10:22:16 +00:00
Peter Stephenson
f5a6b2a8c9 users/11818: allow non-numeric keys for job status parameters 2007-09-05 16:16:15 +00:00
Peter Stephenson
0564c9e999 23808: debugging for wcs_nicechar() 2007-08-30 15:18:25 +00:00
Peter Stephenson
bfa48687c0 23784: Use $'\...' for quoting unparseable characters 2007-08-20 21:22:18 +00:00
Andrey Borzenkov
ac1c483496 23409: disable prompt_sp output after ^D was seen and message printed 2007-05-10 11:36:22 +00:00
Peter Stephenson
cb01bab6c0 Phil Pennock: 23326: compilation without ICONV broken 2007-04-26 09:27:44 +00:00
Peter Stephenson
25bb07b80e Christoph Bauer: users/11416: bad use of VARARR() 2007-04-17 11:59:38 +00:00
Peter Stephenson
f48fa9eb9d unposted: prepare for release of 4.3.3 2007-04-16 13:21:24 +00:00
Peter Stephenson
af8a88e4f5 23248: Completion listing problem with lines nearly screen width
If compiled with debug send dputs() output to $ZSH_DEBUG_LOG if defined.
2007-03-29 21:35:39 +00:00
Bart Schaefer
07c5aeeb9a Small fix to 23177: compute *widthp and *swidep after nicechar(). 2007-02-26 18:47:25 +00:00
Peter Stephenson
910d446ca7 unposted: document some limitations of utils.c 2007-02-18 15:01:29 +00:00
Peter Stephenson
d283709363 23177: better formatting of unprintable multibyte characters under 256 2007-02-14 16:26:41 +00:00
Peter Stephenson
2c92d005d7 23165: fix problems with bases: error if over 36 and don't interpret octal 2007-02-12 16:43:40 +00:00
Peter Stephenson
62b671f0d1 23159 plus minor doc tweaks: leave BAUD parameter unset by default 2007-02-08 10:43:28 +00:00
Peter Stephenson
6cf7a3ef11 23153: restore old ztrcmp() and add comment about why 2007-02-07 10:18:30 +00:00
Peter Stephenson
0108088f52 23152: make ztrcmp() respect MULTIBYTE
make sorting of printed hash tables more consistent
2007-02-06 21:47:54 +00:00
Peter Stephenson
2b948e6c37 23138: further tweak to backslashes in $'...' 2007-01-27 23:52:13 +00:00
Peter Stephenson
df54eeed2c 23136: handle Bnulls now added in $'...' 2007-01-27 19:01:11 +00:00
Peter Stephenson
553e011320 23118: improve sorting to make it work with locales 2007-01-21 22:47:36 +00:00
Peter Stephenson
94bdf92a06 23097: splitting of $'...' strings in completion 2007-01-08 22:05:54 +00:00
Peter Stephenson
507c58262a 23071: signed characters with no multibyte support 2006-12-19 13:01:43 +00:00
Peter Stephenson
1cac90759a 23036: three more fixes for completion using $'...' 2006-12-08 18:52:04 +00:00
Peter Stephenson
34381548da Incomplete improvements for $'...' in completion 2006-12-03 21:07:17 +00:00
Peter Stephenson
aba936b17c 22981: Zvi Har'el: bad call from 22952
22980: add hook array for special functions
2006-11-08 10:38:05 +00:00
Peter Stephenson
ee5ba733a8 unposted: typo in 22885 2006-10-19 08:50:00 +00:00
Peter Stephenson
7d75ea056b 22885: fix problems with multibyte tokenized strings
unposted: _todo.sh: more contexts
2006-10-19 08:40:58 +00:00
Peter Stephenson
d4d6cb5494 22852: users style effect changed in 22191
22853: unquoted ^ at end of bindkey string treated literally
2006-10-10 09:37:19 +00:00
Peter Stephenson
289b14113b 22819: improved internal use of string quotation,
plus completion bug fix with RCQUOTES
2006-10-05 21:53:26 +00:00
Peter Stephenson
8f98285662 22765: rename some MB_ macros to WC_ for consistency. 2006-09-23 20:25:05 +00:00
Peter Stephenson
78d1939ffd 22753: minor character bugs spotted on Cygwin 2006-09-21 16:36:53 +00:00
Peter Stephenson
bb3628e898 assume width 1 for control characters;
don't crash if width of repeated padding string is 0
2006-09-15 13:17:27 +00:00
Peter Stephenson
a242b1eb35 22705: make ${(l...)...} and ${(r...)...} handle multibyte characters 2006-09-13 20:55:29 +00:00
Peter Stephenson
80acfd135c 22684: improve getkeystring() interface and make printf do octal escapes 2006-09-10 18:10:48 +00:00
Peter Stephenson
b726ead94e 22676, 22678: extend sched and make it able to run events when waiting for
input
2006-09-10 15:24:26 +00:00
Peter Stephenson
2ccad2310e 22599: use wide character widths in completion 2006-08-11 21:30:38 +00:00
Peter Stephenson
596d38fb07 22586: fix warnings spotted on Cygwin 2006-08-04 13:38:26 +00:00
Peter Stephenson
99fa8b90b2 22585: fix zsh.exports 2006-08-04 11:42:20 +00:00
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
Wayne Davison
fa8923e1f9 If getkeystring() finds a \c escape (when looking for such escapes),
truncate the returned string at the escape.
2005-07-26 00:07:08 +00:00
Wayne Davison
6e80eb1a4c Improved the function comment for getkeystring(). 2005-07-24 05:19:58 +00:00
Wayne Davison
c71813ef45 Added missing "goto" in handling of 'c' escape (fix from
Thorsten Dahlheimer).
2005-07-24 04:54:54 +00:00
Peter Stephenson
38eb8ac293 21049: Don't close process substitution file descriptors for external programmes 2005-03-31 09:54:54 +00:00
Bart Schaefer
65f01182b9 Belated commit of 20892: improvements to correct/correctall behavior. 2005-03-11 15:22:10 +00:00
Oliver Kiddle
1b50dff802 20921: using UCS-4BE instead of ISO-10646 to identify character encoding
is more portable, find more encodings in iconv completion on Solaris
20924: make error message more specific
2005-03-03 14:13:03 +00:00
Peter Stephenson
ddd172ebe2 20863: fix history (i)searching for Unicode 2005-02-25 10:20:38 +00:00
Oliver Kiddle
ebe071866d 20862: attempt to fix configure scripts to detect iconv properly 2005-02-24 16:53:07 +00:00
Peter Stephenson
85b63c0c03 20844: prune trailing slashes from named directory 2005-02-22 18:23:16 +00:00
Peter Stephenson
d1d6742848 20759, 20760, 20765: Improve Cygwin configuration 2005-02-01 10:52:50 +00:00
Peter Stephenson
88a37cc187 c.f. 20675: improve zle as a basis for Unicode.
unposted: update version to 4.2.3-dev-1
2005-01-14 13:04:47 +00:00
Peter Stephenson
5141e68daa 20572: Allow alternative signal names 2004-11-22 10:33:03 +00:00
Wayne Davison
65729f5570 Added gettempfile(), which works like a custom mkstemp() (in addition
to the existing gettempname(), which works like a custom mktemp()).
2004-10-21 00:33:42 +00:00
Wayne Davison
1637c4eba6 Made gettempname() take a prefix arg and a use_heap arg. When prefix is
non-NULL, it uses the specified prefix instead of $TMPPREFIX.
2004-10-18 19:07:46 +00:00
Wayne Davison
0d6e174e23 Made zclose() avoid calling close() when fd < 0. 2004-10-18 03:32:16 +00:00
Peter Stephenson
46141be5f9 20412, tweaked: Make test builtin more POSIX compatible
20435: Make pattern.c not alter strings.
2004-10-05 10:39:41 +00:00
Peter Stephenson
037485c4a4 20378: Matthias B.: fix bugs joining with metafied chars. 2004-09-17 09:25:38 +00:00
Peter Stephenson
7d3220f298 20251: integer conversion truncation
20258: save command status in prompt substitution
update FAQ
rename version to 4.2.1-dev-1
2004-08-16 09:52:56 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Wayne Davison
14c7f464c2 Silenced two signed/unsigned comparison compiler warnings. 2004-05-28 19:21:05 +00:00
Wayne Davison
c42420319f Set the first character of buf to '\1' before the strftime() call so
we can try to distinguish a zero-length string from an error return
(a minor fix to Peter's patch).
2004-05-05 17:00:58 +00:00
Peter Stephenson
f57f65282b 19877: improved test for empty strftime strings 2004-05-04 16:43:29 +00:00
Clint Adams
c98b9dc800 * 19869: Src/prompt.c, Src/utils.c: avoid segfault when
prompt-expanding '%D{%p}' or '%D{%P}' under locales with null
        strings for am_pm.
2004-05-04 04:17:26 +00:00
Peter Stephenson
99b38b2f54 19683: Work around dllwrap problem on Cygwin 2004-03-25 12:32:10 +00:00
Oliver Kiddle
76bd48d674 19308: zsh crashes with $((##)) 2003-12-17 20:47:39 +00:00
Peter Stephenson
815bc92148 a la 19209: zcalloc -> zshcalloc 2003-10-29 19:17:30 +00:00
Peter Stephenson
ed6a7ba60e 19168: Various problems with size of buffers and pointer usage in ztrftime 2003-10-06 22:46:24 +00:00
Peter Stephenson
eeb9ec4714 19129: extra argument to typeset -T gives character for joining array 2003-09-24 14:55:32 +00:00
Peter Stephenson
c2ed9f96a7 18920: fix unset IFS betterer 2003-08-01 16:29:20 +00:00
Peter Stephenson
74678a3435 18916: unsetting IFS could cause segfault 2003-08-01 09:55:38 +00:00
Oliver Kiddle
da74eb6338 18525: add manual UTF-8 conversion so \u and \U should work on more systems 2003-05-13 12:50:26 +00:00
Peter Stephenson
8ee83d44ff 18524: sepjoin !heap bug cause problem in vared 2003-05-12 11:45:28 +00:00
Peter Stephenson
94da86f795 18492: Provide partial fix for multios and output process substitution
asynchronicity problem.  Document workarounds for remaining problems.
2003-05-02 10:25:27 +00:00
Wayne Davison
6eaed9fb4b Fixed zjoin() when it returns an empty string that should be allocated. 2003-03-25 18:05:30 +00:00
Peter Stephenson
d8e418bff1 18376: Fix headers for wchar.h and some related gcc waringnings 2003-03-24 12:56:56 +00:00
Oliver Kiddle
a2197a5361 18359: fix bug where not enough memory was allocated if MB_LEN_MAX < 6 2003-03-18 14:39:41 +00:00
Oliver Kiddle
d8fac9fb23 18343, 18348: handle \u and \U escapes for specifying unicode characters 2003-03-14 13:36:07 +00:00
Peter Stephenson
590a26709a 18195: Timeouts for read builtin. 2003-02-05 11:56:55 +00:00
Peter Stephenson
f87232c120 18086: I don't know how this got missed out... 2003-02-05 10:56:56 +00:00
Clint Adams
6c998a07ab * 17810 (Martin Waitz): Src/utils.c: bung up memory leak with
POSIX.1e capabilities.
2002-10-11 01:08:18 +00:00
Oliver Kiddle
af0697b705 17503: fix various typos and spelling mistakes in source code comments 2002-08-05 12:35:59 +00:00
Peter Stephenson
afe1b00e16 17141 plus mods: add `zle -F fd handler' feature. 2002-05-21 11:10:13 +00:00
Bart Schaefer
9629b2dc53 15746: remove (with #if) an incorrect optimization in the maildir version
of mailstat().
2002-01-06 01:07:23 +00:00
Bart Schaefer
7f1ce57089 16158: interpret TAB as "yes" only in spckword()
16201: introduce the PM_NAMEDDIR flag
2001-11-03 23:35:25 +00:00
Bart Schaefer
a698189843 Fix segfault in checkrmall(). 2001-10-20 17:48:23 +00:00
Oliver Kiddle
4aaa5b3257 fix return code and tests of printf and comment above bslashquote func (16064) 2001-10-16 11:16:04 +00:00
Wayne Davison
8b3a84fa4f Removed bogus mkstemp() code. 2001-06-15 23:55:08 +00:00
Peter Stephenson
bd6302eae0 Use mkstemp where available 2001-06-15 22:19:44 +00:00
Bart Schaefer
9fbdcb5311 Fix problems with zwcstat() on systems that do not USE_MMAP. 2001-06-09 18:06:32 +00:00
Clint Adams
fd6be2db0f 14815: fix thinko 2001-06-08 19:05:55 +00:00
Clint Adams
975c0b44c5 14813: autoload functions from deleted .zwc files 2001-06-08 18:34:53 +00:00
Clint Adams
23e2a3e5f8 14541: %# with capabilities prompt-expand to # iff Effective set non-empty or euid=0 2001-05-29 15:09:06 +00:00
Oliver Kiddle
b5ad8bf0de add mod_export in a couple of places where it was missing 2001-05-23 08:53:11 +00:00