Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Erlang JAM (!) files make OpenOffice not print on Tuesdays
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robert Raschke  
View profile  
 More options Sep 8, 7:49 am
From: Robert Raschke <rtrli...@googlemail.com>
Date: Tue, 8 Sep 2009 12:49:42 +0100
Local: Tues, Sep 8 2009 7:49 am
Subject: [erlang-questions] Erlang JAM (!) files make OpenOffice not print on Tuesdays

A bit off topic, but I thought this was quite amusing. Just came across it
in catching up with my comp.risks reading (http://catless.ncl.ac.uk/Risks/).

Robby

>Date: Sun, 16 Aug 2009 11:27:21 +1000
>From: phil colbourn
>Subject: Cannot print on Tuesdays!

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.

References:
http://mdzlog.alcor.net/2009/08/15/bohrbugs-openoffice-org-wont-print...

Reported as this bug:
https://bugs.edge.launchpad.net/ubuntu/+source/cupsys/+bug/255161

Later made a duplicate to this bug:
https://bugs.edge.launchpad.net/ubuntu/+source/file/+bug/248619.

http://www.blaxlandweather.com/ http://philatwarrimoo.blogspot.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google