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 /pcl | |
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 'pcl')
-rw-r--r-- | pcl/pl/plwmainc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcl/pl/plwmainc.c b/pcl/pl/plwmainc.c index cdac9d167..ea24c0648 100644 --- a/pcl/pl/plwmainc.c +++ b/pcl/pl/plwmainc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2021 Artifex Software, Inc. +/* Copyright (C) 2001-2022 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -474,10 +474,10 @@ int wmain(int argc, wchar_t *argv[], wchar_t *envp[]) { if (nargv == NULL) goto err; for (i=0; i < argc; i++) { - nargv[i] = malloc(wchar_to_utf8(NULL, argv[i])); + nargv[i] = malloc(gp_uint16_to_utf8(NULL, argv[i])); if (nargv[i] == NULL) goto err; - (void)wchar_to_utf8(nargv[i], argv[i]); + (void)gp_uint16_to_utf8(nargv[i], argv[i]); } /* Switch console code page to CP_UTF8 (65001) as we may send utf8 strings |