diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2022-11-21 16:35:17 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2022-11-21 18:58:51 +0000 |
commit | e15f8ff9db30c4e780973cef79e162baed6047c6 (patch) | |
tree | d73af5935cceb56721479331fdd2a901b7b083c7 /devices | |
parent | 31f96d10d419ca83c6d9bcafb2c635df35bb537c (diff) | |
download | ghostpdl-e15f8ff9db30c4e780973cef79e162baed6047c6.tar.gz |
Move gp_wutf8 functions to be gp_utf8.
Promote previously windows specific functions to be
generically available (and give them names that
reflect that).
Diffstat (limited to 'devices')
-rw-r--r-- | devices/gdevwpr2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devices/gdevwpr2.c b/devices/gdevwpr2.c index a8e812f60..cb420cf02 100644 --- a/devices/gdevwpr2.c +++ b/devices/gdevwpr2.c @@ -1020,10 +1020,10 @@ win_pr2_getdc(gx_device_win_pr2 * wdev) wchar_t *devices; wchar_t *p; int devices_size = 128, returned_length = 0; - wchar_t *unidev = malloc(utf8_to_wchar(NULL, device)*sizeof(wchar_t)); + wchar_t *unidev = malloc(gp_utf8_to_uint16(NULL, device)*sizeof(wchar_t)); if (unidev == NULL) return FALSE; - utf8_to_wchar(unidev, device); + gp_utf8_to_uint16(unidev, device); do { devices = gs_malloc(wdev->memory, devices_size, 1, "win_pr2_getdc"); if (devices == (wchar_t *)NULL) { @@ -1056,10 +1056,10 @@ win_pr2_getdc(gx_device_win_pr2 * wdev) /* the printer exists, get the remaining information from win.ini */ GetProfileStringW(L"Devices", unidev, L"", unidrvbuf, sizeof(unidrvbuf)); free(unidev); - i = wchar_to_utf8(NULL, unidrvbuf); + i = gp_uint16_to_utf8(NULL, unidrvbuf); if (i < 0 || i > sizeof(driverbuf)) return FALSE; - wchar_to_utf8(driverbuf, unidrvbuf); + gp_uint16_to_utf8(driverbuf, unidrvbuf); } driver = gs_strtok(driverbuf, ",", &dbuflast); output = gs_strtok(NULL, ",", &dbuflast); |