ShuguangSun

Results 33 comments of ShuguangSun

Maybe port to MSYS2?

Understand. Thanks.

It works. FYI. In windows 10, the temp file goes to "c:/Users/username/AppData/Local/Temp/pdf-tools-"xxx as expected.

Sorry. It is my fault. The issue is still there. The different is that the temp dir is created now. However, it reports "Unable to create temporary file".

At Windows 10, It seems no need of the path to temp dir. `char template[] = "epdfinfoXXXXXX";`

At Windows 10, It seems no need of the path to temp dir. char template[] = "epdfinfoXXXXXX";

> If you run `printf "#include \nP_tmpdir" | gcc -E - | tail -n1` in the shell, what do you get? On Linux with glibc 2.35 it tells me `"/tmp"`,...

It does'nt work on windows. As it pointed above `P_tmpdir` is `"\\"` (`\` I think) on windows, `P_tmpdir MKTEMP_SEPARATOR` might be `"\\\\"` (`\\`). It works well if it changes to...

> Does it work with `char template[] = P_tmpdir "epdfinfoXXXXXX";` on Windows? It doesn't work. The same error will be printed.