From c6456e52b425151a307dcdc2d7ee8bb579601273 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 21 Jan 2019 09:21:10 +0000 Subject: [PATCH] Core: ToAsciiRest_ now returns 32 instead of 0 if no ascii for character git-svn-id: svn://ultimatepp.org/upp/trunk@12690 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/UnicodeInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/UnicodeInfo.cpp b/uppsrc/Core/UnicodeInfo.cpp index b81316f37..473b7de35 100644 --- a/uppsrc/Core/UnicodeInfo.cpp +++ b/uppsrc/Core/UnicodeInfo.cpp @@ -214,7 +214,7 @@ char ToAsciiRest_(dword c) UnicodeInfo& f = Single(); int q = f.composed.Find(c); if(q < 0) - return 0; + return ' '; int ch = *(const dword *)~f.decomposed[q]; return ch < 128 ? ch : ' '; }