* grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
unicode path.
This commit is contained in:
parent
11f3c324e6
commit
2859196e5f
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
|
||||||
|
unicode path.
|
||||||
|
|
||||||
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
|
* grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
|
||||||
|
|
|
@ -279,15 +279,15 @@ char *
|
||||||
canonicalize_file_name (const char *path)
|
canonicalize_file_name (const char *path)
|
||||||
{
|
{
|
||||||
char *ret;
|
char *ret;
|
||||||
|
LPTSTR windows_path;
|
||||||
ret = xmalloc (PATH_MAX);
|
ret = xmalloc (PATH_MAX);
|
||||||
|
|
||||||
#ifndef __CYGWIN__
|
windows_path = grub_util_get_windows_path (path);
|
||||||
if (!_fullpath (ret, path, PATH_MAX))
|
if (!windows_path)
|
||||||
return NULL;
|
return NULL;
|
||||||
#else
|
ret = grub_util_tchar_to_utf8 (windows_path);
|
||||||
if (!realpath (path, ret))
|
free (windows_path);
|
||||||
return NULL;
|
|
||||||
#endif
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue