diff options
author | rumpf_a@web.de <> | 2009-10-21 10:20:15 +0200 |
---|---|---|
committer | rumpf_a@web.de <> | 2009-10-21 10:20:15 +0200 |
commit | 053309e60aee1eda594a4817ac8ac2fb8c18fb04 (patch) | |
tree | 0f1ce8b0de0b493045eb97eeca6ebf06542de601 /nim/rst.pas | |
parent | 581572b28c65bc9fe47974cfd625210a69be0f3f (diff) | |
download | Nim-053309e60aee1eda594a4817ac8ac2fb8c18fb04.tar.gz |
version 0.8.2
Diffstat (limited to 'nim/rst.pas')
-rwxr-xr-x | nim/rst.pas | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nim/rst.pas b/nim/rst.pas index d5cde5c7e..fb29b7d9f 100755 --- a/nim/rst.pas +++ b/nim/rst.pas @@ -314,6 +314,9 @@ begin len := length(tokens); L.buf := PChar(buffer); L.line := 1; + // skip UTF-8 BOM + if (L.buf[0] = #239) and (L.buf[1] = #187) and (L.buf[2] = #191) then + inc(L.bufpos, 3); L.skipPounds := skipPounds; if skipPounds then begin if L.buf[L.bufpos] = '#' then inc(L.bufpos); |