summaryrefslogtreecommitdiffstats
path: root/library/demos
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-19 10:35:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-19 10:35:52 (GMT)
commitac36024031479affd0b2b5ada200d04659b61bdc (patch)
tree51ab89424d840c4fbeba9319e00839359ec0cf54 /library/demos
parente15390471f6368e52215eb6ff7bd88d3185d66e1 (diff)
downloadtk-ac36024031479affd0b2b5ada200d04659b61bdc.zip
tk-ac36024031479affd0b2b5ada200d04659b61bdc.tar.gz
tk-ac36024031479affd0b2b5ada200d04659b61bdc.tar.bz2
Use correct Emoji representation when running with Tcl 8.7. Works on X11 then!
Diffstat (limited to 'library/demos')
-rw-r--r--library/demos/unicodeout.tcl5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/demos/unicodeout.tcl b/library/demos/unicodeout.tcl
index 811d210..f7dfc77 100644
--- a/library/demos/unicodeout.tcl
+++ b/library/demos/unicodeout.tcl
@@ -131,7 +131,10 @@ addSample $w Japanese \
addSample $w Korean "\uB300\uD55C\uBBFC\uAD6D\uC758 \uD55C\uAE00"
addSample $w Russian \
"\u0420\u0443\u0441\u0441\u043A\u0438\u0439 \u044F\u0437\u044B\u043A"
-if {[tk windowingsystem] ne "x11"} {
+if {[package vsatisfies [package provide Tcl] 8.7-]} {
+ addSample $w Emoji \
+ "\U1F600\U1F4A9\U1F44D\U1F1F3\U1F1F1"
+} elseif {[tk windowingsystem] ne "x11"} {
addSample $w Emoji \
"\uD83D\uDE00\uD83D\uDCA9\uD83D\uDC4D\uD83C\uDDF3\uD83C\uDDF1"
}