Skip to content

Commit a3ae260

Browse files
happiclaude
andcommitted
Replace emoji with Greek letters in Unicode string example
The emoji characters (U+1F60E) rendered as empty squares in the PDF because they are outside the Noto Serif font coverage. Replaced with Greek letters lambda, pi, sigma (955, 960, 963) which Noto Serif supports and which still demonstrate the +pc unicode shell behavior. Fixes #211 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dcdbde6 commit a3ae260

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

chapters/type_system.asciidoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -389,25 +389,25 @@ defaults to the Latin-1 range when detecting strings, so for example:
389389

390390
[source,erlang]
391391
----
392-
2> [128526, 128526, 128526].
393-
[128526, 128526, 128526]
392+
2> [955, 960, 963].
393+
[955,960,963]
394394
----
395395

396-
just shows the result as a list of numbers. However, if we start Erlang
396+
just shows the result as a list of numbers, even though 955, 960, and 963
397+
are the Greek letters lambda, pi, and sigma. However, if we start Erlang
397398
with the option `+pc unicode`, the Erlang shell will be much more generous
398399
with what it considers printable:
399400

400401
[source,shell]
401402
----
402-
Eshell V15.2.2 (press Ctrl+G to abort, type help(). for help)
403403
$ erl +pc unicode
404404
Erlang/OTP 27 [erts-15.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]
405405
406406
Eshell V15.2.2 (press Ctrl+G to abort, type help(). for help)
407-
1> [128526, 128526, 128526].
408-
"😎😎😎"
409-
2>
407+
1> [955, 960, 963].
408+
"λπσ"
410409
----
410+
411411
Just note that it depends on your console, what encoding it is set to
412412
expect, and its available fonts, whether it will be able to actually
413413
display those characters.

0 commit comments

Comments
 (0)