cron: non-canonical MIME charset used in mail

Bug #1169160 reported by Malcolm Scott
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cron (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

cron sends mail with the following header:

  Content-Type: text/plain; charset=ANSI_X3.4-1968

This is a non-canonical alias for the preferred charset name "us-ascii" [1]. A previous changelog entry (for 3.0pl1-101) states that this was previously fixed:

    - Do not use ANSI_x3.4-1968 but US-ASCII instead since it is the preferred
      MIME name as per http://www.iana.org/assignments/character-sets"
      (Closes: #415302)

However the code to do this translation is not currently working due to an incorrect assumption about the case of nl_langinfo's output (it currently returns "ANSI_X3.4-1968", whereas the code checks case-sensitively for "ANSI_x3.4-1968").

[1] http://www.iana.org/assignments/character-sets/character-sets.xml

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cron 3.0pl1-120ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-38.61-generic 3.2.37
Uname: Linux 3.2.0-38-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Mon Apr 15 13:03:04 2013
MarkForUpload: True
ProcEnviron:
 TERM=screen-bce
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: cron
UpgradeStatus: Upgraded to precise on 2013-01-10 (94 days ago)
modified.conffile..etc.crontab: [modified]
mtime.conffile..etc.crontab: 2013-04-14T09:07:44.212020

Related branches

Revision history for this message
Malcolm Scott (malcscott) wrote :
Revision history for this message
Malcolm Scott (malcscott) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "debdiff against precise" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Hi Malcolm, did you submit your change to upstream?

If you want this to be fixed in Ubuntu before we get a new upstream package, you'll need to rebase this change against saucy.

Thanks!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your work there, could you reply to the comments made by Dmitry? Before doing a SRU we need the bug fixed in the current serie and the patch to be sent upstream if possible.

If you want a stable update to precise it would also be good to provide the SRU informations: test case, impact of the bug, regression potential (see https://wiki.ubuntu.com/StableReleaseUpdates)

Changed in cron (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

I'm unsubscribing sponsors since there is work needed before we can sponsor that patch, please subscribe them back once you add the infos requested

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cron (Ubuntu):
status: New → Confirmed
Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <LANG=ca_ES.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>

...and special characters aren't not well shown by webmail such gmail and others...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cron - 3.0pl1-127ubuntu1

---------------
cron (3.0pl1-127ubuntu1) vivid; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - debian/control:
      + Move MTA to Suggests field.
    - debian/cron.upstart: Add Upstart script.
    - debian/rules: Call dh_installinit to install Upstart job properly.
    - d/cron.default: change to a deprecated message to make it clear
      that the file is no longer in use.

cron (3.0pl1-127) unstable; urgency=medium

  * Drop $READ_ENV from cron's command line. It does not belong there.
    Closes: #766779

cron (3.0pl1-126) unstable; urgency=low

  * Packaging (general): removed unused files from the source that had been
    already removed in 3.0pl1-117 but got reintroduced due to a merge.

cron (3.0pl1-125) unstable; urgency=medium

  * Acknowledge NMUs. Thanks, Laurent Bigonville and Ansgar Burchardt.
    Closes: #749271

  [ Christian Kastner ]
  * debian/control:
    - Bump Standards-Version to 3.9.6 (no changes needed)
    - Canonicalize Vcs-* URLs
  * debian/copyright:
    - Bump years
    - Don't use spaces in License short name
  * debian/source/lintian-overrides:
    - Drop overrides from pre-UTF-8 debian/control era
  * debian/rules:
    - Extend documentation
  * debian/cron.init:
    - Include winbind in Should-Start/Stop. Closes: #732203
  * crontab.5:
    - Don't use hyphen as a minus sign
  * cron.8:
    - Drop stray words in cron.8. Thanks, Regid Ichira! Closes: #702091
    - Fix misspelled 'sytem'. Thanks, green! Closes: #753775
  * cron.c,crontab.c:
    - Use basename of argv[0] as syslog tag. Closes: #752750
  * cron.c:
     - Use case-insensitive comparison in charset selection. Thanks,
       Malcolm Scott! LP: #1169160
  * entry.c:
    - Detect invalid entry: step specified without a range. Thanks,
      Justin T. Pryzby! Closes: #733478
    - Error out when a command field is too long instead of silently
      truncating it. Closes: #686223, LP: #826702
  * do_command.c:
    - Fix initialization and increment of mailed bytes counter.
      Closes: #691488
  * cron.c, do_command.c:
    - Add an option -n to include FQDN in mail subject. Closes: #570423

  [ brian m. carlson ]
  * config.h, do_command.c:
    - Send proper 8-bit emails by including an appropriate MIME-Version and
      adjusting the Content-Transfer-Encoding header accordingly.
      Closes: #694686

  [ Javier Fernández-Sanguino ]
  * Change systemd definition in order for the daemon to read an honor
    /etc/default/cron (Closes: #754279)

cron (3.0pl1-124.2) unstable; urgency=medium

  * Non-maintainer upload.
  * debian/cron.service: Set IgnoreSIGPIPE=false. (Closes: #756047)
  * debian/cron.service: Add Documentation field.
 -- Michael Vogt <email address hidden> Mon, 27 Oct 2014 10:19:21 +0100

Changed in cron (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.