updated for version 7.2-049
diff --git a/src/misc1.c b/src/misc1.c
index 727951f..0487290 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -8728,7 +8728,7 @@
/* The active codepage differs from 'encoding'. Attempt using the
* wide function. If it fails because it is not implemented fall back
* to the non-wide version (for Windows 98) */
- wn = enc_to_ucs2(buf, NULL);
+ wn = enc_to_utf16(buf, NULL);
if (wn != NULL)
{
hFind = FindFirstFileW(wn, &wfb);
@@ -8756,7 +8756,7 @@
#ifdef WIN3264
# ifdef FEAT_MBYTE
if (wn != NULL)
- p = ucs2_to_enc(wfb.cFileName, NULL); /* p is allocated here */
+ p = utf16_to_enc(wfb.cFileName, NULL); /* p is allocated here */
else
# endif
p = (char_u *)fb.cFileName;
@@ -8830,7 +8830,7 @@
if (wn != NULL)
{
vim_free(wn);
- wn = enc_to_ucs2(buf, NULL);
+ wn = enc_to_utf16(buf, NULL);
if (wn != NULL)
hFind = FindFirstFileW(wn, &wfb);
}