added some debug output to argument parser.
authorkramm <kramm>
Sat, 12 Jun 2004 16:05:32 +0000 (16:05 +0000)
committerkramm <kramm>
Sat, 12 Jun 2004 16:05:32 +0000 (16:05 +0000)
pdf2swf/ttf2pt1/ttf2pt1.c

index 009f707..50752dc 100644 (file)
@@ -607,7 +607,7 @@ unicode_init_user(
        } 
 
        /* now read in the encoding description file, if requested */
-       if ((unicode_map_file = fopen(path, "rb")) == NULL) {
+       if ((unicode_map_file = fopen(path, "r")) == NULL) {
                fprintf(stderr, "**** Cannot access map file '%s' ****\n", path);
                exit(1);
        }
@@ -2069,7 +2069,7 @@ ttf2pt1_main(
                                }
        }
 
-       if ((null_file = fopen(BITBUCKET, "wb")) == NULL) {
+       if ((null_file = fopen(BITBUCKET, "w")) == NULL) {
                fprintf(stderr, "**** Cannot open %s ****\n",
                        BITBUCKET);
                exit(1);
@@ -2142,12 +2142,12 @@ ttf2pt1_main(
                        exit(1);
                }
                ofp = pfa_file;
-               ifp = fdopen(p[0], "rb");
+               ifp = fdopen(p[0], "r");
                if (ifp == NULL) {
                        perror("**** Cannot use pipe for reading ****\n");
                        exit(1);
                }
-               pfa_file = fdopen(p[1], "wb");
+               pfa_file = fdopen(p[1], "w");
                if (pfa_file == NULL) {
                        perror("**** Cannot use pipe for writing ****\n");
                        exit(1);