Subject: bin/12082: Typo in units.lib
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/29/2001 17:27:22
>Number:         12082
>Category:       bin
>Synopsis:       netherlandsguilder in units.lib is misspelled; units(1) fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 29 17:30:00 PST 2001
>Originator:     Ben Wong
>Release:        NetBSD 1.5
System: NetBSD 1.5 NetBSD 1.5 (GENERIC) #1: Sun Nov 19 21:42:11 MET 2000 fvdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC i386

The units program cannot convert from (or to) guilders because there
is a typo in /usr/share/misc/units.lib. Currently the file contains
these lines:

    netherlandguilder		.52 $
    guilder			netherlandsguilder
    hollandguilder		netherlandsguilder

Since netherlandsguilder (notice the 's') is not defined, the units
program is unable to convert guilders.


    bash-2.04$ units
    503 units, 41 prefixes

    You have: guilders
    unknown unit 'netherlandsguilder'
    You have: dollars
    You want: guilders
    unknown unit 'netherlandsguilder'
    You want: ^C


Just add the 's' in "netherlandguilder". So the line in units.lib
should read:

netherlandsguilder	.52 $