1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-01 08:21:17 +02:00
Commit Graph

4558 Commits

Author SHA1 Message Date
Wayne Davison
5750513c00 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.  Also,
the code that handled partial multibyte characters (that were
assembled from multiple bytes of a metafied string) was not
advancing past all the assembled bytes, nor was it handling the
decoding of a '\0' char (it looks like it could have infinite
looped in that case).
2006-01-09 01:09:55 +00:00
Wayne Davison
223ade988b Mention unposted changes to various bits of mbrtowc() code. 2006-01-09 00:52:28 +00:00
Wayne Davison
791bbf7120 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.  Also,
we needed to use STOUC() on a char value passed to nicechar(),
and we need to clear the mbstate_t object if mbrtowc() returns
an error.
2006-01-09 00:37:10 +00:00
Wayne Davison
74b4973888 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.  Also,
we needed to use STOUC() on a char value passed to nicechar().
2006-01-09 00:29:57 +00:00
Wayne Davison
9cf3f9ad71 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-09 00:17:24 +00:00
Wayne Davison
c7c713939d Mention configure.ac changes. 2006-01-08 23:13:53 +00:00
Wayne Davison
8e1306c5b1 Got rid of check for wcswidth() and added my missing commit that
added checks for fchown() and fchmod().
2006-01-08 23:08:39 +00:00
Wayne Davison
08494aa570 An improved version of the patch from 22140. 2006-01-08 22:59:13 +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
37c458aa8c Got rid of our use of wcswidth(). 2006-01-08 22:42:07 +00:00
Wayne Davison
2150c0f09b Got rid of wcswidth() define for OpenBSD now that wcswidth() isn't
used.
2006-01-08 22:37:15 +00:00
Wayne Davison
2367a62e4c Changed wcswidth(&c, 1) to wcwidth(c). 2006-01-08 22:36:08 +00:00
Peter Stephenson
e377b38ebf typo in AE and OE ligatures 2006-01-08 18:32:04 +00:00
Peter Stephenson
94953f70b9 22124: handle bad multibyte input better 2006-01-06 14:23:00 +00:00
Peter Stephenson
d8a851a9a8 22123: probe for wcswidth() and assume 1 if not found 2006-01-06 11:41:47 +00:00
Peter Stephenson
b71a632d2f 22118: fix cdpath documentation 2006-01-05 16:13:17 +00:00
Peter Stephenson
4c5e2ca4ad Minor _perforce changes for deleting fixes and changes. 2006-01-04 14:38:28 +00:00
Clint Adams
e2bf91e454 22113: allow single option characters to be combined in completion for last 2006-01-02 01:57:36 +00:00
Wayne Davison
b5f2902241 A couple more improvements to the HIST_SAVE_BY_COPY section. 2005-12-27 07:08:52 +00:00
Clint Adams
13e2483152 22105: ssh -M, -S, and -O 2005-12-25 01:02:24 +00:00
Clint Adams
339989a273 22104: add support for new options such as ControlMaster and ControlPath. 2005-12-25 00:31:43 +00:00
Wayne Davison
ff8ae1ea79 Fixed a bogus file path. 2005-12-23 18:34:55 +00:00
Wayne Davison
096a1887ad Fixed a typo and improved a sentence. 2005-12-23 18:30:47 +00:00
Peter Stephenson
95af03ac65 unposted: updated _yum from Scott Murray 2005-12-19 20:24:20 +00:00
Peter Stephenson
7a389a2fc3 22082: print out uid or gid in stat if name not available 2005-12-19 11:35:40 +00:00
Wayne Davison
8099414599 Changed some UTF-8 apostrophes to normal apostrophes. 2005-12-18 20:13:19 +00:00
Wayne Davison
4c323c984e Changed a UTF-8 closing-single-quote into an ASCII apostrophe. 2005-12-18 20:12:29 +00:00
Wayne Davison
b0144eca96 Changed UTF-8 closing-single-quotes into ASCII apostrophes. 2005-12-18 20:06:00 +00:00
Peter Stephenson
f3100e855a 22095: more multibyte notes. 2005-12-18 19:47:13 +00:00
Wayne Davison
e56c3b8214 22091 2005-12-17 08:11:16 +00:00
Wayne Davison
78168105de Two changes in the HIST_SAVE_BY_COPY code: (1) preserve the group
and permissions on the history file, and (2) fail if zsh's euid
differs from the file's uid (since that would change the history
file's owner).
2005-12-17 07:58:12 +00:00
Peter Stephenson
f7037211ad 22085 and back off 22075: include langinfo.h to get iconv 2005-12-15 14:51:39 +00:00
Peter Stephenson
b5a83cc754 users/9788: add (oN) glob qualifier for no sorting
22076: more documentation for multibyte handling
2005-12-15 10:38:55 +00:00
Bart Schaefer
174ad4a80f 21814: error handling for traps in "always" constructs. 2005-12-15 04:24:04 +00:00
Wayne Davison
c3e8aec759 22078 2005-12-14 23:11:48 +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
Peter Stephenson
4075f65400 Missed bit from 4.3.0-dev-2 2005-12-12 18:51:47 +00:00
Wayne Davison
5bd5b8533a 22071 2005-12-12 18:38:44 +00:00
Wayne Davison
a2e7cbe308 A slightly more optimal way to fix the zle_setline() bug using
the same zlecs-checking idiom as setline().
2005-12-12 18:35:47 +00:00
Wayne Davison
e0c9faba4d Fixed problem in zle_setline() where moving to an empty line would
set zlecs to -1. (Reported by Jun T.)
2005-12-12 18:22:08 +00:00
Peter Stephenson
00e0c063ac 22069: completion listings didn't get unmetafied 2005-12-10 21:04:42 +00:00
Clint Adams
d06bc82c93 22068: completion for debdiff. 2005-12-10 15:27:34 +00:00
Wayne Davison
55fd2f485e Fixed a compiler warning. 2005-12-10 00:29:00 +00:00
Wayne Davison
ec2ad9dd8b Just-added "return" should have returned a value. 2005-12-10 00:27:11 +00:00
Oliver Kiddle
02d84ecddd unposted: reindent and use lowercase letters for descriptions 2005-12-09 19:25:03 +00:00
Oliver Kiddle
f18a78a326 unposted: better completion for sortm 2005-12-09 19:21:54 +00:00
Oliver Kiddle
00a88277bd require 2.53b of autoconf for AC_PROG_EGREP 2005-12-09 19:20:02 +00:00
Clint Adams
b9262b0cbb 22065: starts with "--". 2005-12-09 19:04:26 +00:00
Peter Stephenson
405fd07656 22057: don't use zsh/newuser in emulation
22058: tweak docs for release
2005-12-09 12:49:29 +00:00