diff --git a/extra/io/encodings/detect/detect.factor b/extra/io/encodings/detect/detect.factor index c8b01757f8..c32dac75ec 100644 --- a/extra/io/encodings/detect/detect.factor +++ b/extra/io/encodings/detect/detect.factor @@ -13,7 +13,7 @@ default-8bit-encoding [ latin1 ] initialize over index [ 1 + ] [ dup length ] if* head-slice >string ; + CHAR: > over index [ 1 + head-slice ] when* >string ; : prolog-encoding ( string -- iana-encoding ) '[