]> www.fi.muni.cz Git - evince.git/blobdiff - backend/dvi/mdvi-lib/tfmfile.c
Added UG translation
[evince.git] / backend / dvi / mdvi-lib / tfmfile.c
index cab4f19dfa76fc72f79c1d06bb4b84dee5bbc80e..73ebf26a91a9eba0d6e42277484e2e399612517b 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include <config.h>
  */
 
 #include <config.h>
@@ -81,7 +81,7 @@ int   afm_load_file(const char *filename, TFMInfo *info)
        CharMetricInfo *cm;
        FILE    *in;
        
        CharMetricInfo *cm;
        FILE    *in;
        
-       in = fopen(filename, "r");
+       in = fopen(filename, "rb");
        if(in == NULL)
                return -1;
        status = afm_parse_file(in, &fi, P_GM);
        if(in == NULL)
                return -1;
        status = afm_parse_file(in, &fi, P_GM);
@@ -162,7 +162,7 @@ int tfm_load_file(const char *filename, TFMInfo *info)
        Int32   *depths;
        Uint32  checksum;
 
        Int32   *depths;
        Uint32  checksum;
 
-       in = fopen(filename, "r");
+       in = fopen(filename, "rb");
        if(in == NULL)
                return -1;
        tfm = NULL;
        if(in == NULL)
                return -1;
        tfm = NULL;
@@ -445,7 +445,7 @@ static int  ofm_load_file(const char *filename, TFMInfo *info)
        int     olevel;
        int     nwords;
 
        int     olevel;
        int     nwords;
 
-       in = fopen(filename, "r");
+       in = fopen(filename, "rb");
        if(in == NULL)
                return -1;
 
        if(in == NULL)
                return -1;