Last active
October 3, 2015 04:51
-
-
Save artyom-poptsov/5c7d490ab7a8343d1e80 to your computer and use it in GitHub Desktop.
Guile 'setlocale' (https://www.gnu.org/software/guile/manual/html_node/Locales.html#Locales) example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/guile \ | |
-e main -s | |
!# | |
(define (main args) | |
(display "Locale is not set: ♥\n") | |
(setlocale LC_ALL "en_US.UTF-8") | |
(display "Locale is set: ♥\n")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment