﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3821	_WinAPI_OemToChar should be forced to ASCII	Nine	Jpm	"As per this thread :
[https://www.autoitscript.com/forum/topic/205736-solved-how-to-write-special-characters-to-scite-editor-moved/]

Under certain conditions, the API switches to Unicode causing the script to crash.  By forcing the function to use ASCII characters, the issue was solved.  The revised function should look like this :

{{{
Func _WinAPI_OemToChar($sStr)
  Local $aRet = DllCall('user32.dll', 'bool', 'OemToCharA', 'str', $sStr, 'str', '')
  If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '')
  Return $aRet[2]
EndFunc   ;==>_WinAPI_OemToChar
}}}
"	Bug	closed	3.3.15.4	AutoIt	3.3.14.5	None	Fixed		
