Skip to content

Commit d4f2c26

Browse files
authored
lenient utf8 decode in search
1 parent 6384905 commit d4f2c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Distribution/Server/Util/NLP/Snowball.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ stemsWith (Stemmer mvar) ws =
6161
fromIntegral $ Text.length word
6262
len <- stemmer_length struct
6363
bytes <- packCStringLen (ptr,fromIntegral len)
64-
return $ Text.decodeUtf8 bytes
64+
return $ Text.decodeUtf8With Text.lenientDecode bytes
6565

6666

6767
-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)