Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Got rid of some superfluous STOUC() calls (such as the ones I added | Wayne Davison | 2006-01-13 | 4 | -13/+13 |
| | | | | for the arg of calls to nicechar(), which doesn't need this). | ||||
* | A better version of my last change. | Wayne Davison | 2006-01-13 | 1 | -12/+4 |
| | |||||
* | Metafy the output of the ztrftime() string since that's what the | Wayne Davison | 2006-01-13 | 1 | -1/+12 |
| | | | | prompt expects and some date names might not be ASCII. | ||||
* | Values being stored in an array or a hash needed to be metafied | Wayne Davison | 2006-01-13 | 1 | -5/+5 |
| | | | | (using META_DUP) instead of just duplicated via ztrdup(). | ||||
* | If we are saving the ztrftime() value in a variable, we now metafy | Wayne Davison | 2006-01-13 | 1 | -1/+1 |
| | | | | the string (using META_DUP) instead of duplicating it via ztrdup(). | ||||
* | The new "eol" var was being set in singlerefresh(), but not accessed. | Wayne Davison | 2006-01-12 | 1 | -1/+1 |
| | |||||
* | - When mbrtowc() returns -2 when given all the remaining chars in a | Wayne Davison | 2006-01-12 | 1 | -21/+30 |
| | | | | | | | | 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). | ||||
* | - Use "mbs" for the multi-byte state variable name (for consistency). | Wayne Davison | 2006-01-12 | 1 | -5/+5 |
| | | | | | - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively). | ||||
* | - When mbrtowc() returns -2 when given all the remaining chars in a | Wayne Davison | 2006-01-12 | 4 | -31/+42 |
| | | | | | | | | 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). | ||||
* | - The return value of mbsrtowcs() is also a size_t (like mbrtowc()). | Wayne Davison | 2006-01-12 | 1 | -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). | ||||
* | - The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-12 | 1 | -61/+71 |
| | | | | | | | | | | | | | assign it to an int and then check for negativity, as that won't work on a system where an int is larger than a size_t. - 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 STOUC() when passing a char value to nicechar(). - Use "mbs" for the multi-byte state variable name (for consistency). - Be sure to reset the mbs state if mbrtowc() returns -1. - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively). | ||||
* | Define MB_INCOMPLETE and MB_INVALID for MULTIBYTE_SUPPORT. | Wayne Davison | 2006-01-12 | 1 | -0/+3 |
| | |||||
* | Tweaked the code to handle mbrtowc() converting '\0' the same way as | Wayne Davison | 2006-01-11 | 1 | -11/+20 |
| | | | | the other callers do. Also, changed the variable name to 'cnt'. | ||||
* | Decided to use a switch() in mb_niceformat(). | Wayne Davison | 2006-01-11 | 1 | -7/+12 |
| | |||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-11 | 1 | -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. | ||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-11 | 1 | -5/+7 |
| | | | | | 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. | ||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-11 | 1 | -3/+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. | ||||
* | 22151: bug outputting here-strings from which etc. when already quoted | Peter Stephenson | 2006-01-10 | 1 | -10/+11 |
| | |||||
* | Changed the name of the "ret" variable in mb_niceformat() to "cnt" | Wayne Davison | 2006-01-09 | 1 | -8/+7 |
| | | | | | | | 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 only check if "cnt" is 0, since we must always change a value of 0 to 1. | ||||
* | Changed the name of the "ret" variable in mb_niceformat() to "cnt" | Wayne Davison | 2006-01-09 | 1 | -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. | ||||
* | A test for (size_t)-1 needed to check for (size_t)-2 too. | Wayne Davison | 2006-01-09 | 1 | -1/+1 |
| | |||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-09 | 1 | -10/+9 |
| | | | | | | | | | | 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). | ||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-09 | 1 | -15/+10 |
| | | | | | | | | 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. | ||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-09 | 1 | -4/+4 |
| | | | | | | 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(). | ||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-09 | 1 | -3/+3 |
| | | | | | 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 mb_niceformat() so that it does not truncate a name that | Wayne Davison | 2006-01-08 | 1 | -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.) | ||||
* | Got rid of wcswidth() define for OpenBSD now that wcswidth() isn't | Wayne Davison | 2006-01-08 | 1 | -4/+0 |
| | | | | used. | ||||
* | Changed wcswidth(&c, 1) to wcwidth(c). | Wayne Davison | 2006-01-08 | 1 | -1/+1 |
| | |||||
* | 22124: handle bad multibyte input better | Peter Stephenson | 2006-01-06 | 2 | -3/+13 |
| | |||||
* | 22123: probe for wcswidth() and assume 1 if not found | Peter Stephenson | 2006-01-06 | 1 | -0/+4 |
| | |||||
* | 22082: print out uid or gid in stat if name not available | Peter Stephenson | 2005-12-19 | 1 | -6/+18 |
| | |||||
* | Two changes in the HIST_SAVE_BY_COPY code: (1) preserve the group | Wayne Davison | 2005-12-17 | 1 | -2/+20 |
| | | | | | | 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). | ||||
* | 22085 and back off 22075: include langinfo.h to get iconv | Peter Stephenson | 2005-12-15 | 2 | -10/+9 |
| | |||||
* | users/9788: add (oN) glob qualifier for no sorting | Peter Stephenson | 2005-12-15 | 1 | -14/+33 |
| | | | | 22076: more documentation for multibyte handling | ||||
* | 21814: error handling for traps in "always" constructs. | Bart Schaefer | 2005-12-15 | 2 | -3/+17 |
| | |||||
* | Changed ucs4toutf8() into a static function (since it's only | Wayne Davison | 2005-12-14 | 1 | -2/+1 |
| | | | | used by this file when it's even defined). | ||||
* | 22075: assume we can convert characters with wctomb() with --enable-multibyte | Peter Stephenson | 2005-12-14 | 1 | -3/+3 |
| | |||||
* | A slightly more optimal way to fix the zle_setline() bug using | Wayne Davison | 2005-12-12 | 1 | -2/+1 |
| | | | | the same zlecs-checking idiom as setline(). | ||||
* | Fixed problem in zle_setline() where moving to an empty line would | Wayne Davison | 2005-12-12 | 1 | -1/+1 |
| | | | | set zlecs to -1. (Reported by Jun T.) | ||||
* | 22069: completion listings didn't get unmetafied | Peter Stephenson | 2005-12-10 | 1 | -7/+9 |
| | |||||
* | Just-added "return" should have returned a value. | Wayne Davison | 2005-12-10 | 1 | -1/+1 |
| | |||||
* | 22057: don't use zsh/newuser in emulation | Peter Stephenson | 2005-12-09 | 2 | -1/+4 |
| | | | | 22058: tweak docs for release | ||||
* | 22049: bug exiting from sourced file within function | Peter Stephenson | 2005-12-03 | 1 | -1/+2 |
| | |||||
* | Fixed parsedigit() to have it use its arg instead of "lastchar". | Wayne Davison | 2005-11-30 | 1 | -15/+12 |
| | |||||
* | One more fix for the non-multibyte prototype generation. | Wayne Davison | 2005-11-30 | 1 | -0/+2 |
| | |||||
* | fix utils.c prototype generation for non multibyte build | Geoff Wing | 2005-11-29 | 1 | -0/+2 |
| | |||||
* | 22027: more zsh-newuser-install fixes | Peter Stephenson | 2005-11-25 | 1 | -6/+30 |
| | | | | 22028: WARN_CREATE_GLOBAL overeager with temporarily set variables | ||||
* | 22014: argument-base, insert-unicode-char | Peter Stephenson | 2005-11-24 | 4 | -16/+75 |
| | |||||
* | 22009: another double-width character fix | Peter Stephenson | 2005-11-21 | 1 | -0/+6 |
| | |||||
* | Got rid of two unneeded "(char *)" casts. | Wayne Davison | 2005-11-18 | 1 | -2/+2 |
| |