summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBLUEńLIVE <bluenlive@gmail.com>2015-01-23 08:46:10 +0900
committerBLUEńLIVE <bluenlive@gmail.com>2015-01-23 08:46:10 +0900
commit06e78635fa41b00868a723e4a97a2f04ab92be24 (patch)
tree413ae0a1f06a43079998dd1ec5ddbda3ce7308c1
parent346c0695d37868c8d099cc34b29317f9862109e4 (diff)
downloadnotepad2-mod-06e78635fa41b00868a723e4a97a2f04ab92be24.zip
notepad2-mod-06e78635fa41b00868a723e4a97a2f04ab92be24.tar.gz
notepad2-mod-06e78635fa41b00868a723e4a97a2f04ab92be24.tar.bz2
To send font names in UTF-8
Scintilla 3.5.3 interpret font names in UTF-8. In previous versions, font names were sent in ANSI.
-rw-r--r--src/Styles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Styles.c b/src/Styles.c
index 33c2914..0ec8038 100644
--- a/src/Styles.c
+++ b/src/Styles.c
@@ -4031,7 +4031,7 @@ void Style_SetStyles(HWND hwnd,int iStyle,LPCWSTR lpszStyle)
// Font
if (Style_StrGetFont(lpszStyle,tch,COUNTOF(tch))) {
char mch[256];
- WideCharToMultiByte(CP_ACP,0,tch,-1,mch,COUNTOF(mch),NULL,NULL);
+ WideCharToMultiByte(CP_UTF8,0,tch,-1,mch,COUNTOF(mch),NULL,NULL);
SendMessage(hwnd,SCI_STYLESETFONT,iStyle,(LPARAM)mch);
}