git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0000351
)
added some debug output to argument parser.
author
kramm
<kramm>
Sat, 12 Jun 2004 16:05:32 +0000
(16:05 +0000)
committer
kramm
<kramm>
Sat, 12 Jun 2004 16:05:32 +0000
(16:05 +0000)
pdf2swf/ttf2pt1/ttf2pt1.c
patch
|
blob
|
history
diff --git
a/pdf2swf/ttf2pt1/ttf2pt1.c
b/pdf2swf/ttf2pt1/ttf2pt1.c
index
009f707
..
50752dc
100644
(file)
--- a/
pdf2swf/ttf2pt1/ttf2pt1.c
+++ b/
pdf2swf/ttf2pt1/ttf2pt1.c
@@
-607,7
+607,7
@@
unicode_init_user(
}
/* now read in the encoding description file, if requested */
}
/* 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);
}
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);
fprintf(stderr, "**** Cannot open %s ****\n",
BITBUCKET);
exit(1);
@@
-2142,12
+2142,12
@@
ttf2pt1_main(
exit(1);
}
ofp = pfa_file;
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);
}
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);
if (pfa_file == NULL) {
perror("**** Cannot use pipe for writing ****\n");
exit(1);