Skip to content
Snippets Groups Projects
Commit 467c50f9 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

Support wide strings.

Rev: lib/modules/Parser.pmod/Tabular.pike:1.8
parent a5af1050
No related branches found
No related tags found
No related merge requests found
......@@ -352,6 +352,8 @@ csvready:
}
}
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,7 +387,7 @@ private void add2map(mapping res,string name,mixed entry)
//! @[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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment