Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2004 10:45:23 +0000 (UTC)
From:      "Tim J. Robbins" <tjr@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/cut cut.c
Message-ID:  <200411051045.iA5AjNQl086860@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tjr         2004-11-05 10:45:23 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/cut          cut.c 
  Log:
  When the last line of a file is missing a newline in -f mode, pass a
  length argument to mbrtowc() that accounts for the terminating newline
  character we add automatically. Failing to do this caused the loop to
  unexpectedly run out of characters and incorrectly signal an "Illegal byte
  sequence" error.
  
  Revision  Changes    Path
  1.30      +5 -3      src/usr.bin/cut/cut.c



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