Skip to content

Commit 431097c

Browse files
committed
hello_unicode: Added notes for getting correct output
Unicode is slightly complicated and I neglected to document this.
1 parent 3352443 commit 431097c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/hello_unicode.d

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
*
55
* The functionality of this code is otherwise identical to hello_world.d
66
*
7+
* Requirements for Unicode in ncurses:
8+
* - You need to link against ncursesw instead of ncurses. If you don't have ncursesw, rebuild
9+
* ncurses with --enable-widec (and file a bug with your distro where applicable).
10+
* - You need to be using a Unicode locale. If your $LANG looks something like `en_US.utf8`,
11+
* then you're in good shape. Keep in mind that users don't like when you force a locale; do
12+
* it only if you think it's really necessary.
13+
*
714
* Modified by: Wyatt
815
*/
916
import std.string: toStringz;

0 commit comments

Comments
 (0)