diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-01-01 00:20:39 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-01-01 00:20:39 +0000 |
commit | 7c27a8387deb1f1d0996db28c913c4ac350fe285 (patch) | |
tree | 81843339f60aec8c853d29e1d3f2ada0c97297a9 /Build/source/utils/autosp/autosp-src | |
parent | 8b8b98697d4438ea0da9eba2beba18cf8b70df7a (diff) |
autosp: write binary files to avoid errors in tests on windows
git-svn-id: svn://tug.org/texlive/trunk@46180 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/autosp/autosp-src')
-rw-r--r-- | Build/source/utils/autosp/autosp-src/autosp.c | 10 | ||||
-rw-r--r-- | Build/source/utils/autosp/autosp-src/rebar.c | 2 | ||||
-rw-r--r-- | Build/source/utils/autosp/autosp-src/tex2aspc.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/utils/autosp/autosp-src/autosp.c b/Build/source/utils/autosp/autosp-src/autosp.c index 5c9b1c35956..1145f7fa7ea 100644 --- a/Build/source/utils/autosp/autosp-src/autosp.c +++ b/Build/source/utils/autosp/autosp-src/autosp.c @@ -511,7 +511,7 @@ int collective_note (int i) update_global_skip (n); /* commas will be discarded by filter_output (i) */ if (*s == '.' && new_beaming == 0 && !dottedbeamnotes) - spacing = spacing * 1.50; + spacing = (int)(spacing * 1.50); else if ( (*s == '^' || *s == '_' || *s == '=' || *s == '>') && !vspacing_active[i] /* is additional spacing needed? */ ) @@ -985,7 +985,7 @@ int spacing_note (int i) || prefix ("\\qbpp", s) || prefix ("\\dspp", s) || doubledotted ) - { spacing *= 1.75; doubledotted = false;} + { spacing = (int)(spacing * 1.75); doubledotted = false;} else if (prefix ("\\whp", s) || prefix ("\\hup", s) @@ -1009,7 +1009,7 @@ int spacing_note (int i) || prefix ("\\qbp", s) || prefix ("\\dsp", s) || dotted ) - { spacing *= 1.5; dotted = false; } + { spacing = (int)(spacing * 1.5); dotted = false; } t = strpbrk (s+1, "{\\&|$"); /* collective coding? */ if (*t == '{') /* {...} */ @@ -2176,7 +2176,7 @@ int main (int argc, char *argv[]) printf ("\n"); error ("outfile same as infile."); } - outfile = fopen (outfilename, "w"); + outfile = fopen (outfilename, "wb"); if (outfile == NULL) { printf ("Can't open %s\n", outfilename); exit (EXIT_FAILURE); @@ -2194,7 +2194,7 @@ int main (int argc, char *argv[]) *logfilename_n = '\0'; append (logfilename, &logfilename_n, "alog", sizeof (logfilename)); if (debug) - { logfile = fopen (logfilename, "w"); + { logfile = fopen (logfilename, "wb"); if (logfile == NULL) { printf ("Can't open %s\n", logfilename); exit (EXIT_FAILURE); diff --git a/Build/source/utils/autosp/autosp-src/rebar.c b/Build/source/utils/autosp/autosp-src/rebar.c index ec6e40c7cd7..ea7b6f556e0 100644 --- a/Build/source/utils/autosp/autosp-src/rebar.c +++ b/Build/source/utils/autosp/autosp-src/rebar.c @@ -262,7 +262,7 @@ main (int argc, char *argv[]) else append (outfilename, &outfilename_n, ".aspc", sizeof (outfilename)); } - outfile = fopen (outfilename, "w"); + outfile = fopen (outfilename, "wb"); if (outfile == NULL) { fprintf (stderr,"Can't open %s\n", outfilename); exit (EXIT_FAILURE); diff --git a/Build/source/utils/autosp/autosp-src/tex2aspc.c b/Build/source/utils/autosp/autosp-src/tex2aspc.c index 0372fa2d428..98c64842038 100644 --- a/Build/source/utils/autosp/autosp-src/tex2aspc.c +++ b/Build/source/utils/autosp/autosp-src/tex2aspc.c @@ -337,7 +337,7 @@ int main (int argc, char *argv[]) append (outfilename, &outfilename_n, ".aspc", sizeof (outfilename)); } - outfile = fopen (outfilename, "w"); + outfile = fopen (outfilename, "wb"); if (outfile == NULL) { printf ("Can't open %s\n", outfilename); exit (EXIT_FAILURE); |