@@ -286,9 +286,8 @@ streamDecodeUtf8With onErr = decodeChunk B.empty 0 0
286286 let end = ptr `plusPtr` (off + len)
287287 loop curPtr = do
288288 poke curPtrPtr curPtr
289− curPtr' <- error "c_decode_utf8_with_state: needs to be implemented"
290− -- curPtr' <- c_decode_utf8_with_state (A.maBA dest) destOffPtr
291− -- curPtrPtr end codepointPtr statePtr
289+ curPtr' <- c_decode_utf8_with_state (A.maBA dest) destOffPtr
290+ curPtrPtr end codepointPtr statePtr
292291 state <- peek statePtr
293292 case state of
294293 UTF8_REJECT -> do