skokal01 / mongoose

Automatically exported from code.google.com/p/mongoose
0 stars 0 forks source link

root directory path containing diacritical signs (on Windows) not found #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create directory c:\liška
2. copy mongoose.exe into it
3. run mongoose.exe
4. view localhost in a browser

What is the expected output? What do you see instead?
It should return directory listing for c:\liška but returns "Error 404: Not
Found" instead.

What version of the product are you using? On what operating system?
mongoose-2.4 on Windows XP (Media Center Edition, SP3)

Please provide any additional information below.
I run it as a console application using only mongoose.exe

Original issue reported on code.google.com by truhla.s...@gmail.com on 19 Apr 2009 at 8:38

GoogleCodeExporter commented 9 years ago
_getcwd() must be using the default codepage (CP_ACP) to convert the path to 
narrow
characters, and opendir() is using UTF8 (CP_UTF8) to convert back to wide 
characters.
 Maybe a replacement for _getcwd() could be created that uses GetCurrentDirectoryW()
and converts to UTF8.

Original comment by gilbert....@gmail.com on 23 May 2009 at 2:55

GoogleCodeExporter commented 9 years ago
Submitted http://code.google.com/p/mongoose/source/detail?r=391
Thanks for the hint, Gilbert. I re-used your WinCE code.

Original comment by valenok on 27 May 2009 at 8:30