use untranslated file input mode, important on Windows

This commit is contained in:
Nils Durner committed 2010-01-20 21:07:20 +00:00
1 parent 8893ec6980
commit 1b0b8c014d
8 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -174,7 +174,7 @@ setup_ca_cert ()
{
FILE *cert_fd;
if (NULL == (cert_fd = fopen (ca_cert_file_name, "w+")))
if (NULL == (cert_fd = fopen (ca_cert_file_name, "wb+")))
{
fprintf (stderr, "Error: failed to open `%s': %s\n",
ca_cert_file_name, strerror (errno));
+2 -2
View File
@@ -87,7 +87,7 @@ http_ahc (void *cls, struct MHD_Connection *connection,
}
*ptr = NULL; /* reset when done */
file = fopen (url, "r");
file = fopen (url, "rb");
if (file == NULL)
{
response = MHD_create_response_from_data (strlen (PAGE_NOT_FOUND),
@@ -290,7 +290,7 @@ setup_test_file ()
{
FILE *test_fd;
if (NULL == (test_fd = fopen (TEST_FILE_NAME, "w+")))
if (NULL == (test_fd = fopen (TEST_FILE_NAME, "wb+")))
{
fprintf (stderr, "Error: failed to open `%s': %s\n",
TEST_FILE_NAME, strerror (errno));