diff cinst/main.c @ 1157:fd7d04bb37cb

(issue36) Add encoding aware port_fopen function and use it
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 18 Sep 2014 15:43:22 +0200
parents 1e429faf7c84
children 2a1206932f53
line wrap: on
line diff
--- a/cinst/main.c	Thu Sep 18 12:56:31 2014 +0200
+++ b/cinst/main.c	Thu Sep 18 15:43:22 2014 +0200
@@ -50,6 +50,7 @@
 #include "errorcodes.h"
 #include "windowsstore.h"
 #include "nssstore.h"
+#include "portpath.h"
 
 /* The certificate list + choices may only be so long as
  * twice the accepted certificatelist size */
@@ -90,7 +91,7 @@
       return -1;
     }
 
-  f = fopen (file_name, "rb");
+  f = port_fopen_rb(file_name, false);
   if (f == NULL)
     {
       ERRORPRINTF ("Failed to open file: %s\n", file_name);

http://wald.intevation.org/projects/trustbridge/