diff --git a/source/NVDAObjects/window/scintilla.py b/source/NVDAObjects/window/scintilla.py index 7a9998767e1..efd56d02db4 100755 --- a/source/NVDAObjects/window/scintilla.py +++ b/source/NVDAObjects/window/scintilla.py @@ -1,3 +1,8 @@ +#A part of NonVisual Desktop Access (NVDA) +#Copyright (C) 2009-2019 NV Access Limited, Arnold Loubriat, Babbage B.V. +#This file is covered by the GNU General Public License. +#See the file COPYING for more details. + import ctypes import IAccessibleHandler import speech @@ -121,7 +126,7 @@ def _getFormatFieldAndOffsets(self,offset,formatConfig,calculateOffsets=True): winKernel.readProcessMemory(self.obj.processHandle,internalBuf,fontNameBuf,len(fontNameBuf),None) finally: winKernel.virtualFreeEx(self.obj.processHandle,internalBuf,0,winKernel.MEM_RELEASE) - formatField["font-name"]=fontNameBuf.value + formatField["font-name"]=fontNameBuf.value.decode("utf-8") if formatConfig["reportFontSize"]: formatField["font-size"]="%spt"%watchdog.cancellableSendMessage(self.obj.windowHandle,SCI_STYLEGETSIZE,style,0) if formatConfig["reportLineNumber"]: