Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 19 Jan 2004 17:20:45 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Sam Steingold cc: cygwin AT cygwin DOT com Subject: [OT] Re: cygwin/regex is non-POSIX In-Reply-To: Message-ID: References: <20040118050449 DOT GA3672 AT efn DOT org> <20040119201357 DOT GA2608 AT efn DOT org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 19 Jan 2004, Sam Steingold wrote: > > * U-DHX98431\sthoenna [2004-01-19 12:13:58 -0800]: > > > > On Mon, Jan 19, 2004 at 01:54:06PM -0500, Sam Steingold wrote: > >> > * Yitzchak Scott-Thoennes [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 AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/