View Issue Details

IDProjectCategoryView StatusLast Update
0000981luatexluatex bugpublic2016-08-28 14:55
Reporterautc04 Assigned Toluigi scarso  
PrioritylowSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Fixed in Version0.98.0 
Summary0000981: Garbled output on unix platforms where sizeof(off_t) == 4
DescriptionWhen compiled on a non-win32 32bit platform where sizeof(off_t) == 4, PDF output doesn'tcontainanyspaces.

I tracked this down to one line in pdfgen.w where a 64-bit number is output as a 32-bit number without the appropriate cast.

Patch is included.
Additional Information--- pdfgen.w 2016-08-15 22:31:58.000000000 +0200
+++ /Users/wolfgang/src/texlive-20160523-source/texk/web2c/luatexdir/pdf/pdfgen.w 2016-08-15 22:01:20.000000000 +0200
@@ -576,7 +576,7 @@
                 pdf_out(pdf, '1');
             } else {
                 char a[24];
- snprintf(a, 23, "%" LONGINTEGER_PRI "i", m);
+ snprintf(a, 23, "%" LONGINTEGER_PRI "i", (LONGINTEGER_TYPE) m);
                 pdf_puts(pdf, a);
             }
         } else {
TagsNo tags attached.

Activities

luigi scarso

2016-08-22 13:08

developer   ~0001628

Thank you, fixed in trunk, luatex 0.98.3.

Issue History

Date Modified Username Field Change
2016-08-15 22:46 autc04 New Issue
2016-08-22 13:08 luigi scarso Note Added: 0001628
2016-08-28 14:54 Hans Hagen Assigned To => luigi scarso
2016-08-28 14:54 Hans Hagen Status new => assigned
2016-08-28 14:55 Hans Hagen Status assigned => closed
2016-08-28 14:55 Hans Hagen Resolution open => fixed
2016-08-28 14:55 Hans Hagen Fixed in Version => 0.98.0