Skip to content

Commit

Permalink
Checks BOM at the head of buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sin committed Jun 11, 2017
1 parent 8fb4340 commit e93e6f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/encoding/guess.lisp
Expand Up @@ -132,7 +132,8 @@ independent_ name, `order` is a state at this function stops guessing process."
,order
(generate-order ,@encs))))
;; special treatment of BOM
(check-byte-order-mark ,buffer :ucs-2be :ucs-2le ,order-var)
(unless ,order-var
(check-byte-order-mark ,buffer :ucs-2be :ucs-2le ,order-var))

(do-guess-loop ,vars ,buffer
,@specialized-check
Expand Down

0 comments on commit e93e6f0

Please sign in to comment.