X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fdvi%2Fmdvi-lib%2Ffontmap.c;h=c3c3a8d3e65530559b03cc9a6aa49fef68585b34;hb=11eb3f2a9d6062b2d38a549c1f9547d7985c7be5;hp=e186bd453945eb06969cbe151d97bf059d5a4bf0;hpb=14def5e0c1c11cee1523e10c72df74f4cf5e451d;p=evince.git diff --git a/backend/dvi/mdvi-lib/fontmap.c b/backend/dvi/mdvi-lib/fontmap.c index e186bd45..c3c3a8d3 100644 --- a/backend/dvi/mdvi-lib/fontmap.c +++ b/backend/dvi/mdvi-lib/fontmap.c @@ -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 - * 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 @@ -119,7 +119,7 @@ static int read_encoding(DviEncoding *enc) ASSERT(enc->private == NULL); - in = fopen(enc->filename, "r"); + in = fopen(enc->filename, "rb"); if(in == NULL) { DEBUG((DBG_FMAP, "%s: could not read `%s' (%s)\n", enc->name, enc->filename, strerror(errno))); @@ -267,7 +267,7 @@ static DviEncoding *register_encoding(const char *basefile, int replace) if(filename == NULL) filename = mdvi_strdup(basefile); - in = fopen(filename, "r"); + in = fopen(filename, "rb"); if(in == NULL) { mdvi_free(filename); return NULL; @@ -478,9 +478,9 @@ DviFontMapEnt *mdvi_load_fontmap(const char *file) if(ptr == NULL) ptr = kpse_find_file(file, kpse_dvips_config_format, 0); if(ptr == NULL) - in = fopen(file, "r"); + in = fopen(file, "rb"); else { - in = fopen(ptr, "r"); + in = fopen(ptr, "rb"); mdvi_free(ptr); } if(in == NULL) @@ -728,9 +728,9 @@ static int mdvi_init_fontmaps(void) /* let's ask kpathsea for the file first */ file = kpse_find_file(config, kpse_program_text_format, 0); if(file == NULL) - in = fopen(config, "r"); + in = fopen(config, "rb"); else { - in = fopen(file, "r"); + in = fopen(file, "rb"); mdvi_free(file); } if(in == NULL) @@ -906,7 +906,7 @@ int mdvi_ps_read_fontmap(const char *name) fullname = kpse_path_search(pslibdir, name, 1); else fullname = (char *)name; - in = fopen(fullname, "r"); + in = fopen(fullname, "rb"); if(in == NULL) { if(fullname != name) mdvi_free(fullname);