Package: libudunits2-0 Version: 2.1.15-3 Severity: important Tags: patch In the supplied library of units and constants there is a typo in the value of the elementary charge. The "e" is missing before the exponent resulting in bad values upon unit conversion:
$ udunits2 udunits2: Using default XML database You have: 1 e You want: C 1 e = 0.000128973 C x/C = 0.000128973*(x/e) (The correct value is 1 e = 1.602176487e-19 C.) The attached patch fixes the problem and introduces an update value from the NIST constants homepage http://physics.nist.gov/cgi-bin/cuu/Value?e With best regards, Stefan Tibus -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libudunits2-0 depends on: ii dpkg 1.15.7.2 Debian package management system ii install-info 4.13a.dfsg.1-5 Manage installed documentation in ii libc6 2.11.1-3 Embedded GNU C Library: Shared lib ii libexpat1 2.0.1-7 XML parsing C library - runtime li libudunits2-0 recommends no packages. libudunits2-0 suggests no packages. -- no debconf information
--- udunits2-common.xml.org 2010-06-06 23:54:42.000000000 +0200 +++ udunits2-common.xml 2010-06-14 10:15:46.656506537 +0200 @@ -1358,7 +1358,7 @@ <aliases> <name> <singular>abvolt</singular> </name> </aliases> </unit> <unit> - <def>1.60217733-19 C</def> + <def>1.602176487e-19 C</def> <aliases> <symbol>e</symbol> </aliases> </unit> <unit>