Home
/
News
/
OpenOffice does not print on Tuesdays (2009)
OpenOffice does not print on Tuesdays (2009)
Summary
The article describes a bug where OpenOffice fails to print only on Tuesdays, caused by an error in the 'file' utility's pattern matching that misidentifies PostScript files as Erlang JAM files due to date formatting.
<p><a href="https://lobste.rs/s/im3eeh/openoffice_does_not_print_on_tuesdays">Comments</a></p>
0
Like
0
Add to favorites
Original Article
Export to Word
Export to PDF
View Cached Full Text
Cached at:
08/28/26, 01:37 PM
# OpenOffice does not print on Tuesdays
Source: [https://beza1e1.tuxen.de/lore/print_on_tuesday.html](https://beza1e1.tuxen.de/lore/print_on_tuesday.html)
[Source](http://catless.ncl.ac.uk/Risks/25/77#subj14.1)via Paul Wise
Today I came across an interesting bug mentioned on a blog\. The problem was that printing for some people failed occasionally\. Later someone noted that his Wife had been complaining that she couldn't print on Tuesdays\!
In reading through the bug report people were initially claiming that it must be an OpenOffice bug since all other applications printed fine\. Others noted that it comes and goes\. One user found a solution: To remove and purge the system of OpenOffice and re\-install \(any easy task on Ubuntu\)\. He reported on a Thursday that this fixed his printing problem\.
Two weeks later he reported \(on a Tuesday\) that his solution did not work after\-all\. Nearly 4 months later the Wife of a Ubuntu hacker complained that OpenOffice would not print on Tuesdays\. I can imagine the scenario:
Wife: Steve, the printer will not work on Tuesdays\.
Steve: That's the printer's day off \- Of course it will not print on Tuesdays\.
Wife: No, I'm serious\! I can not print from OpenOffice on Tuesdays\.
Steve: \(Unbelieving\.\.\) Ok\.\.\. Show me\.
Wife: I can't show you\.
Steve: \(Rolling eyes\.\.\) Why?
Wife: It's Wednesday\!
Steve: \(Nods\. He says slowly\.\.\.\) Right\.
The problem seemed to be tracked down to a program called 'file'\. This \*NIX utility uses patterns to detect file types\. eg\. if the file starts with '%\!' followed by 'PS\-Adobe\-' then it is a PostScript file\. It seems that OpenOffice writes the date to the postscript file\. On Tuesdays it takes the form of %%CreationDate: \(Tue MMM D hh:mm:\.\.\.\)
An error in the pattern for an Erlang JAM file meant that 'Tue' in the PostScript file was being recognised as an Erlang JAM file and so, presumably, it was not being sent to the printer\.
The Erlang JAM file pattern is:
```
4 string Tue Jan 22 14:32:44 MET 1991 Erlang JAM file - version 4.2
```
It should have been
```
4 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2
```
With the large number of files types that this program attempts to match \(over 1600\) it is not surprising that errors are made in the patterns, but also the order of matching could mean that false positives are common\. In this case, an Erlang JAM file was matched before the PostScript match occurred\.
[Reference](http://mdzlog.alcor.net/2009/08/15/bohrbugs-openoffice-org-wont-print-on-tuesdays/),[Bug Report](https://bugs.edge.launchpad.net/ubuntu/+source/file/+bug/248619)
---
[More such crazy stories](https://beza1e1.tuxen.de/lore/index.html)
©2023\-11\-22
Similar Articles
Lobsters Hottest
The Document Foundation corrects claims that Euro-Office is the first European open-source office suite, highlighting LibreOffice and OpenOffice.org's history and criticizing Euro-Office's use of Microsoft's proprietary OOXML format as contrary to digital sovereignty.
X AI KOLs Following
Jeremy Howard reports that Anthropic's Opus 4.8 model suddenly stopped thinking and produced poor responses, while Opus 4.6 worked fine.
Hacker News Top
The Document Foundation welcomes Euro-Office's commitment to open standards but urges that ODF be adopted as its native document format for true digital sovereignty, correcting claims that Euro-Office is Europe's first open source office suite.
Hacker News Top
A blog post exploring the nonexistent dates of October 5-14, 1582 due to the Gregorian calendar reform, and how Ruby, Python, and Perl handle these invalid dates.
Hacker News Top
A rare bug in PHP's DateTimeImmutable caused off-by-one-day errors for February of year 0; the fix is to use alternative timestamp conversion methods.