Bug 22217 - [PATCH] UK phone codes out of date
Summary: [PATCH] UK phone codes out of date
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Brian Somers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-22 18:40 UTC by Keith Jones
Modified: 2000-10-31 22:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Jones 2000-10-22 18:40:01 UTC
	Phone code list does not reflect recent dialling code changes.

Fix: 

Very simple patch follows (pipe 'uk.phone' through script,
	redirect stdout to wherever is appropriate):

#!/usr/bin/perl
while(<>) {
        s/^(\d+)-(\d+)/$1 $2/;
        s/^0171(\d*) /020 7$1/;
        s/^0181(\d*) /020 8$1/;
        s/^01203(\d*) /024 76$1/;
        s/^01222(\d*) /029 20$1/;
        s/^01232(\d*) /028 90$1/;
        s/^01365(\d*) /028 66$1/;
        s/^01703(\d*) /023 80$1/;
        s/^01705(\d*) /023 92$1/;
        print;
}
How-To-Repeat: 
	Install port, look at phone codes, compare against back of more
	recent phone bill. ;)
Comment 1 Doug Barton freebsd_committer freebsd_triage 2000-10-31 07:45:37 UTC
Responsible Changed
From-To: freebsd-ports->brian

brian is the maintainer of this port
Comment 2 Brian Somers freebsd_committer freebsd_triage 2000-10-31 22:37:50 UTC
State Changed
From-To: open->closed

Committed - thanks.