Subject: bin/9966: /etc/printcap is not compatible with IPv6 numeric
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 04/23/2000 23:20:12
>Number:         9966
>Category:       bin
>Synopsis:       /etc/printcap is not compatible with IPv6 numeric
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 23 23:21:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        latest current
>Organization:
	itojun.org
>Environment:
NetBSD ginger.itojun.org 1.4X NetBSD 1.4X (STARFRUIT) #196: Wed Apr 19 16:07:49 JST 2000     itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386


>Description:
	IPv6 numeric address uses colons in it.  /etc/printcap is separated
	by colons.  We cannot put IPv6 numeric address into /etc/printcap
	(like "rm") due to the dual use of colons.

	I feel it okay to force people to use FQDN in IPv6 world
	(since it is too hard to type numerics!), but in some cases,
	we may want to put IPv6 numeric into /etc/printcap.
>How-To-Repeat:
	try putting IPv6 numeric address into "rm" portion, like:

# Typical remote printer entry.
#remote|Line Printer:\
#	:lp=:rm=::1:sd=/var/spool/output/remotelpd:\
#	:lf=/var/log/lpd-errs:

>Fix:
	not sure.
	0. leave it as is, document it well.
	1. quote by using doublequotes like rm="::1"
	2. quote by using RFC2732, like rm=[::1]
>Release-Note:
>Audit-Trail:
>Unformatted: