Fix bug #12: Balanced square brackets test should recognize multi-line [Illustration] tags
9 * Return an absolute path to <path>.
10 * Note that this function makes no attempt to return a unique path, or
11 * to remove "." or ".." entries. It simply returns a path which will
12 * be unaffected by subsequent calls to chdir().
14 char *path_to_absolute(const char *path)
21 path2=g_utf8_to_utf16(path,-1,NULL,NULL,NULL);
24 len=GetFullPathNameW(path2,0,NULL,NULL); /* len includes nul */
30 abs2=g_new(gunichar2,len);
31 len=GetFullPathNameW(path2,len,abs2,NULL); /* len excludes nul */
38 abs=g_utf16_to_utf8(abs2,len,NULL,NULL,NULL);
47 s=g_get_current_dir();
48 abs=g_build_filename(s,path,NULL);