cvs commit: src/bin/ls extern.h print.c util.c

Jeroen Ruigrok/asmodai asmodai at crater.dragonflybsd.org
Sun Sep 18 11:37:34 PDT 2005


asmodai     2005/09/18 11:35:23 PDT

DragonFly src repository

  Modified files:
    bin/ls               extern.h print.c util.c 
  Log:
  Synchronise with FreeBSD:
  
  Treat filenames as multibyte character strings (according to the current
  LC_CTYPE setting) when determining which characters are printable.
  This is an often-requested feature.
  
  Use wcwidth() to determine the number of column positions a character
  takes up, although there are still a few places left where we assume
  1 byte = 1 column position, e.g. line-wrapping when handling the -m option.
  
  The error handling here is somewhat more complicated than usual: we do
  our best to show what we can of a filename in the presence of conversion
  errors, instead of simply aborting.
  
  Revision  Changes    Path
  1.7       +2 -1      src/bin/ls/extern.h
  1.14      +3 -2      src/bin/ls/print.c
  1.7       +132 -62   src/bin/ls/util.c


http://www.dragonflybsd.org/cvsweb/src/bin/ls/extern.h.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ls/print.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ls/util.c.diff?r1=1.6&r2=1.7&f=u





More information about the Commits mailing list