This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[OT] Re: cygwin/regex is non-POSIX


On Mon, 19 Jan 2004, Sam Steingold wrote:

> > * U-DHX98431\sthoenna <fgubraan@rsa.bet> [2004-01-19 12:13:58 -0800]:
> >
> > On Mon, Jan 19, 2004 at 01:54:06PM -0500, Sam Steingold <sds@gnu.org> wrote:
> >> > * Yitzchak Scott-Thoennes <fgubraan@rsa.bet> [2004-01-17 21:04:50 -0800]:
> > That's cute.  But what if a real address matches a rot13'd one?
>
> rot13({top-level-domain}) does not intersect {top-level-domain}.
> [snip]

Sure it does:

rot13("nr") = "ae" (Nauru <-> United Arab Emirates)
rot13("nt") = "ag" (Neutral Zone <-> Antigua and Barbuda)
rot13("nz") = "am" (New Zealand <-> Armenia)
rot13("na") = "an" (Namibia <-> Netherlands Antilles)
rot13("ne") = "ar" (Niger <-> Argentina)
rot13("nf") = "as" (Norfolk Island <-> American Samoa)
rot13("ng") = "at" (Nigeria <-> Austria)
rot13("om") = "bz" (Oman <-> Belize)
rot13("pt") = "cg" (Portugal <-> Congo)
rot13("py") = "cl" (Paraguay <-> Chile)
rot13("pa") = "cn" (Panama <-> China)
rot13("pe") = "cr" (Peru <-> Costa Rica)
rot13("pf") = "cs" (French Polynesia <-> Czechoslovakia)
rot13("ph") = "cu" (Philippines <-> Cuba)
rot13("pk") = "cx" (Pakistan <-> Christmas Island)
rot13("pl") = "cy" (Poland <-> Cyprus)
rot13("pm") = "cz" (St. Pierre and Miquelon <-> Czech Republic)
rot13("ru") = "eh" (Russian Federation <-> Western Sahara
rot13("sv") = "fi" (El Salvador <-> Finland)
rot13("sz") = "fm" (Swaziland <-> Micronesia)
rot13("sb") = "fo" (Solomon Islands <-> Faroe Islands)
rot13("se") = "fr" (Sweden <-> France)
rot13("sk") = "fx" (Slovak Republic <-> French European Territories)
rot13("tn") = "ga" (Tunisia <-> Gabon)
rot13("to") = "gb" (Tonga <-> Great Britain)
rot13("tr") = "ge" (Turkey <-> Georgia)
rot13("tv") = "gi" (Tuvalu <-> Gibraltar)
rot13("tz") = "gm" (Tanzania <-> Gambia)
rot13("tc") = "gp" (Turks and Caicos Islands <-> Guadeloupe)
rot13("td") = "gq" (Chad <-> Equatorial Guinea)
rot13("tg") = "gt" (Togo <-> Guatemala)
rot13("th") = "gu" (Thailand <-> Guam)
rot13("tj") = "gw" (Tajikistan <-> Guinea-Bissau)
rot13("uz") = "hm" (Uzbekistan <-> Heard and McDonald Islands)
rot13("ua") = "hn" (Ukraine <-> Honduras)
rot13("ug") = "ht" (Uganda <-> Haiti)
rot13("va") = "in" (Vatican City-State <-> India)
rot13("ve") = "ir" (Venezuela <-> Iran)
rot13("vg") = "it" (British Virgin Islands <-> Italy)
rot13("ye") = "lr" (Yemen <-> Liberia)
rot13("za") = "mn" (South Africa <-> Mongolia)
rot13("zm") = "mz" (Zambia <-> Mozambique)

In other words, country suffixes are also top-level domains...

SCNR,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]