Permalink
Browse files

Warning about possible bugs with bidi TLD

git-svn-id: https://svn.generic-nic.net/NIC-generique/iana/whois@12186 e62f009e-d044-43ae-9900-873abb462db7
  • Loading branch information...
1 parent 5471ca1 commit c2a397e4834484cc3fd7b393b79555351ab671a5 @bortzmeyer bortzmeyer committed Jul 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 iana-twitter.py
View
4 iana-twitter.py
@@ -59,7 +59,9 @@
# No need to shorten it
if ltld[0:4] == "xn--":
utld = encodings.idna.ToUnicode(ltld)
- tld = "%s (%s)" % (utld, tld)
+ tld = "%s (%s)" % (utld, tld) # TODO: if utld is RTL (arabic), the
+ # display may be strange (the parenthesis
+ # has no directionality)
tmpl = string.Template(msg)
expanded_msg = tmpl.substitute(tld=tld)
if not debug:

0 comments on commit c2a397e

Please sign in to comment.