Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2002 00:24:46 -0800 (PST)
From:      "Tim J. Robbins" <tjr@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/locale mblen.c mbtowc.c
Message-ID:  <200210280824.g9S8OlmJ078060@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tjr         2002/10/28 00:24:46 PST

  Modified files:
    lib/libc/locale      mblen.c mbtowc.c 
  Log:
  Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0)
  return -1 regardless of what s points to, mbtowc(&w, s, 1) sets w to a
  null wide character when s points to a null byte. This seems to be closer
  to what most other implementations do, but the C99 standard contradicts
  itself for these cases.
  
  Revision  Changes    Path
  1.4       +3 -4      src/lib/libc/locale/mblen.c
  1.6       +3 -4      src/lib/libc/locale/mbtowc.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210280824.g9S8OlmJ078060>