mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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
This commit is contained in:
parent
16b8107555
commit
c6456e52b4
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ char ToAsciiRest_(dword c)
|
|||
UnicodeInfo& f = Single<UnicodeInfo>();
|
||||
int q = f.composed.Find(c);
|
||||
if(q < 0)
|
||||
return 0;
|
||||
return ' ';
|
||||
int ch = *(const dword *)~f.decomposed[q];
|
||||
return ch < 128 ? ch : ' ';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue