Cannot use cyrillic paths for cef binaries
Posted: Wed Jun 10, 2020 7:33 am
Hello, I am using cef4delphi to embed a browser in my lazarus (2.0.8) project.
Setting paths like this:
Everything works fine as long as paths conatin english letters, but cef is unable to start if path contains other languages symbols
Specifically, the following returns false at checking DLL version stage in uCEFApplicationCore.pas:
I am sure my project has default lazarus/fpc unicode support enabled, and tried different workarounds such as converting my strings to utf16 or assigning constants to string type first, but nothing changed.
Setting paths like this:
Code: Select all
GlobalCEFApp.FrameworkDirPath:=ExtractFilePath(ParamStr(0)) + 'cef';
GlobalCEFApp.ResourcesDirPath:=ExtractFilePath(ParamStr(0)) + 'cef';
GlobalCEFApp.LocalesDirPath:=ExtractFilePath(ParamStr(0)) + 'cef\locales';
GlobalCEFApp.cache:=ExtractFilePath(ParamStr(0)) + 'cef\cache';
GlobalCEFApp.UserDataPath:=ExtractFilePath(ParamStr(0)) + 'cef\User Data';
Specifically, the following returns false at checking DLL version stage in uCEFApplicationCore.pas:
Code: Select all
if CheckDLLVersion(LibCefPath,
CEF_SUPPORTED_VERSION_MAJOR,
CEF_SUPPORTED_VERSION_MINOR,
CEF_SUPPORTED_VERSION_RELEASE,
CEF_SUPPORTED_VERSION_BUILD) then