aboutsummaryrefslogtreecommitdiffstats
path: root/src/stringutils.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-10-09 13:36:51 +0000
committerWerner Koch <[email protected]>2020-10-09 13:36:51 +0000
commitdbedf190969de1a796560cfa15fb4ea986bc79dc (patch)
tree9009cde2ee1a353955bbe5505c3aecbc258e0abe /src/stringutils.c
parentdoc: Fix typos in comments (diff)
downloadlibgpg-error-dbedf190969de1a796560cfa15fb4ea986bc79dc.tar.gz
libgpg-error-dbedf190969de1a796560cfa15fb4ea986bc79dc.zip
w32: Support utf8 also for getcwd.
* src/sysutils.c (_gpgrt_getcwd) [W32]: Implement utf-8 support. * src/w32-gettext.c (wchar_to_native): Factor some code out to .. (wchar_to_cp): new. (_gpgrt_wchar_to_utf8): New. * tests/t-stringutils.c: Include windows.h. (utf8_to_wchar): New. (wchar_to_utf8): New. (mygetcwd): Use wchar version for Windows. (main): New option --pwd.
Diffstat (limited to 'src/stringutils.c')
-rw-r--r--src/stringutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stringutils.c b/src/stringutils.c
index d92398d..0be8769 100644
--- a/src/stringutils.c
+++ b/src/stringutils.c
@@ -48,7 +48,7 @@ _gpgrt_vfnameconcat (int want_abs, const char *first_part, va_list arg_ptr)
char *home_buffer = NULL;
char *name, *home, *p;
- /* Put all args into an array becuase we need to scan them twice. */
+ /* Put all args into an array because we need to scan them twice. */
n = strlen (first_part) + 1;
argc = 0;
while ((argv[argc] = va_arg (arg_ptr, const char *)))