Bug 97928 - "au" not defined; sundist is accordingly defined incorrectly
Summary: "au" not defined; sundist is accordingly defined incorrectly
Status: CLOSED DUPLICATE of bug 96982
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: units (Show other bugs)
(Show other bugs)
Version: 9
Hardware: All Linux
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2003-06-24 07:51 UTC by Scott Seagroves
Modified: 2007-04-18 16:55 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 18:56:50 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Scott Seagroves 2003-06-24 07:51:32 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030530 Galeon/1.3.5

Description of problem:
The documentation for "units" boasts that the AU is one of the defined
quantities --- yes and no.  It is defined as "astronomicalunit" but nowhere is
"au" explicitly defined.  So when you do calculations with "au" units ends up
thinking it is "a" for atto and "u" for atomicmassunit.  

This is bad for two reasons.  One: I figured that since "au" is mentioned on the
manpage (look in the section "Unit Definitions") then I could use it, but in
fact it is not defined.
Two: the "sundist" is defined as (in /usr/share/units.dat)

sundist                 1.0000010178 au # mean earth-sun distance

which is actually an incorrect definition since "au" is interpretted as an

This is similar to bug 96982 where the parsec was defined in terms of "au"; this
has since been fixed in rawhide by changing the definition to be in terms of
astronomicalunit.  I think a better remedy for all these situations would simply
be to add a line

au               astronomicalunit

to /usr/share/units.dat.  How many people will be using au for the

Version-Release number of selected component (if applicable):
units-1.80-4 and units-1.80-7.1

How reproducible:

Steps to Reproduce:
1.type "units"

[scott@lobos ~]$ units
2083 units, 71 prefixes, 32 nonlinear units
You have:

2.type "sundist" and hit return twice
You have: sundist
You want:
        Definition: 1.0000010178 au = 1.6605404e-45 kg
You have:


Actual Results:  You have: sundist
You want:
        Definition: 1.0000010178 au = 1.6605404e-45 kg
You have:

Expected Results:  I should have gotten the earth-sun distance in meters like this:
You have: 1.0000010178 astronomicalunit
You want:
        Definition: 1.4959802e+11 m

Additional info:

Comment 1 Harald Hoyer 2003-06-24 09:15:18 UTC
I know, I know... I reported this upstream already...

*** This bug has been marked as a duplicate of 96982 ***

Comment 2 Harald Hoyer 2003-06-24 09:16:30 UTC
I will push out a new rawhide version today..

Comment 3 Harald Hoyer 2003-06-24 10:58:16 UTC
fixed in units-1.80-8.1

Comment 4 Red Hat Bugzilla 2006-02-21 18:56:50 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.