aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/errorout_memory.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-06-21 22:13:10 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-24 09:17:28 +0100
commit5de428df07c571322cfbc055a780d41f0ce95a67 (patch)
treebaf265884019696de1b5359177970eb3bac52ee4 /pyGHDL/libghdl/errorout_memory.py
parenta89b2986b4a252ec8ae5a5db920c2e329ad2a9a3 (diff)
downloadghdl-5de428df07c571322cfbc055a780d41f0ce95a67.tar.gz
ghdl-5de428df07c571322cfbc055a780d41f0ce95a67.tar.bz2
ghdl-5de428df07c571322cfbc055a780d41f0ce95a67.zip
Change encoding to latin-1 for libghdl (to comply with standard).
It can be monkey-patched via pyGHDL.libGHDL.ENCODING. (cherry picked from commit 2dd38de9d52493cde7c045ed73a987ed06bf617a)
Diffstat (limited to 'pyGHDL/libghdl/errorout_memory.py')
-rw-r--r--pyGHDL/libghdl/errorout_memory.py3
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