FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Dialog boxes handle encodings. · gnuplot/gnuplot@531bf9f · GitHub

Repository navigation

Commit 531bf9f

Browse files
committed
Dialog boxes handle encodings.
1 parent 12edf46 commit 531bf9f

3 files changed

Lines changed: 617 additions & 591 deletions

File tree

‎ChangeLog‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2016-05-23 Bastian Maerkisch <bmaerkisch@web.de>
2+
3+
* src/win/wmenu.c src/win/wgnuplib.h: Use UTF16 "W" APIs to handle
4+
Unicode. This affects all menu dialog boxes (open/save, directory,
5+
input). It is still assumed that wgnuplot.mnu is encoded using the
6+
ANSI codepage. Reformat source while at it.
7+
Part 5 of wgnuplot Unicode support.
8+
19
2016-05-22 Daniel J Sebald <daniel.sebald@ieee.org>
210

311
* term/write_png_image.c: gdImageDestroy() needed on code paths for
@@ -15,7 +23,7 @@
1523

1624
2016-05-21 Bastian Maerkisch <bmaerkisch@web.de>
1725

18-
* src/win/wtext.c: Use standard file API instead of _lopen and
26+
* src/win/wmenu.c: Use standard file API instead of _lopen and
1927
friends.
2028

2129
* src/misc.c (encoding_from_locale): On Windows, if the current

‎src/win/wgnuplib.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Id: wgnuplib.h,v 1.75 2016/05/07 12:13:03 markisch Exp $
2+
* $Id: wgnuplib.h,v 1.76 2016/05/21 05:29:31 markisch Exp $
33
*/
44

55
/* GNUPLOT - win/wgnuplib.h */
@@ -109,14 +109,14 @@ int PauseBox(LPPW lppw);
109109
#define BUTTONMAX 10
110110
typedef struct tagMW
111111
{
112-
LPSTR szMenuName; /* required */
112+
LPTSTR szMenuName; /* required */
113113
HMENU hMenu;
114114
BYTE **macro;
115115
BYTE *macrobuf;
116116
int nCountMenu;
117117
DLGPROC lpProcInput;
118-
char *szPrompt;
119-
char *szAnswer;
118+
LPWSTR szPrompt;
119+
LPWSTR szAnswer;
120120
int nChar;
121121
int nButton;
122122
HWND hToolbar;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL