#if RL_VERSION_MAJOR < 6
#ifdef _WIN32
#include <windows.h>
typedef void(*t_free)(void*);
t_free get_rl_free()
{
HINSTANCE hDLL = LoadLibraryW(L"readline5");
return (t_free)GetProcAddress((HMODULE)hDLL, "xfree");
}
#endif
void rl_free(void *p)
{
#ifdef _WIN32
static t_free free = get_rl_free();
#endif
free(p);
}
#endif
Any thought about the other issue about non-asci characters in filenames on windows? Or should i file a seperate bugreport?