diff options
Diffstat (limited to 'pyGHDL/libghdl/errorout_memory.py')
-rw-r--r-- | pyGHDL/libghdl/errorout_memory.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/errorout_memory.py b/pyGHDL/libghdl/errorout_memory.py index 9f75d0331..d0847417e 100644 --- a/pyGHDL/libghdl/errorout_memory.py +++ b/pyGHDL/libghdl/errorout_memory.py @@ -36,6 +36,7 @@ from ctypes import c_int8, c_int32, c_char_p, Structure from pyTooling.Decorators import export +from pyGHDL.libghdl import ENCODING from pyGHDL.libghdl._types import ErrorIndex from pyGHDL.libghdl._decorator import BindToLibGHDL @@ -122,7 +123,7 @@ def Get_Error_Message(Idx: ErrorIndex) -> str: :param Idx: Index from 1 to ``Nbr_Messages`` See :func:`Get_Nbr_Messages`. :return: Error message. """ - return _Get_Error_Message(Idx).decode("iso-8859-1") + return _Get_Error_Message(Idx).decode(ENCODING) @export |