From b2a7cfba438ec498fb577d4f128af6a479b746ce Mon Sep 17 00:00:00 2001 From: Fabian Knorr Date: Tue, 29 May 2018 10:47:02 +0200 Subject: [PATCH] Do not fail on UTF-8 decoding errors --- cldoc/clang/cindex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cldoc/clang/cindex.py b/cldoc/clang/cindex.py index e58a2dd..3f92def 100644 --- a/cldoc/clang/cindex.py +++ b/cldoc/clang/cindex.py @@ -98,7 +98,7 @@ def __str__(self): def value(self): if super(c_char_p, self).value is None: return None - return super(c_char_p, self).value.decode("utf8") + return super(c_char_p, self).value.decode("utf8", errors="replace") @classmethod def from_param(cls, param):