Permalink
Browse files

patch 8.0.0907: with cp932 font names might be misinterpreted

Problem:    With cp932 font names might be misinterpreted.
Solution:   Do not see "_" as a space when it is the second byte of a double
            byte character. (Ken Takata)
  • Loading branch information...
brammool committed Aug 11, 2017
1 parent d9bc8a8 commit 89e06c807ac63030dd163092e1c58f9ce350aeee
Showing with 5 additions and 1 deletion.
  1. +3 −1 src/os_mswin.c
  2. +2 −0 src/version.c
View
@@ -2965,7 +2965,9 @@ get_logfont(
int did_replace = FALSE;
for (i = 0; lf->lfFaceName[i]; ++i)
if (lf->lfFaceName[i] == '_')
if (IsDBCSLeadByte(lf->lfFaceName[i]))
++i;
else if (lf->lfFaceName[i] == '_')
{
lf->lfFaceName[i] = ' ';
did_replace = TRUE;
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
907,
/**/
906,
/**/

0 comments on commit 89e06c8

Please sign in to comment.