Branch: Tag:

2010-01-02

2010-01-02 13:16:27 by Stephen R. van den Berg <srb@cuci.nl>

Support wide strings.

Rev: lib/modules/Parser.pmod/Tabular.pike:1.8

352:    }    }    string out=replace(s[..<1]*"",({"\n"," "," "}),({""," "," "})); +  if(String.width(out)>8) +  out=string_to_utf8(out);    if(verb>0)    werror("%d %.*s\r",recordcount,verb,out);    else
385:   //! @[fetch()]   int skipemptylines()   { string line; int eof=1; -  while((line=in->gets()) && emptyline->match(line)) +  while((line=in->gets()) && String.width(line)==8 && emptyline->match(line))    recordcount++;    if(line)    eof=0,in->unread(line+"\n");