about summary refs log tree commit diff
path: root/.preconfig
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-01-12 00:51:41 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-01-12 00:51:41 +0000
commiteebfabe5487484b3d1e732386989e739bd3d869e (patch)
tree19cdbeb790de7a05bb770a7ea322867e45442c24 /.preconfig
parent3039f65d741f2d9241528c1ea0a7af0b6dfcfd64 (diff)
downloadzsh-eebfabe5487484b3d1e732386989e739bd3d869e.tar.gz
zsh-eebfabe5487484b3d1e732386989e739bd3d869e.tar.xz
zsh-eebfabe5487484b3d1e732386989e739bd3d869e.zip
- The return value of mbrtowc() is a size_t (unsigned), so don't
  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).
Diffstat (limited to '.preconfig')
0 files changed, 0 insertions, 0 deletions