From 5896a4d65de68c5e29b5566234e71e1c288df08d Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Fri, 23 Jan 2009 21:26:14 +0000 Subject: + added locale/ : basic C99 locale support svn path=/trunk/externals/moocow/; revision=10605 --- locale/src/locale-help.pd | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 locale/src/locale-help.pd (limited to 'locale/src/locale-help.pd') diff --git a/locale/src/locale-help.pd b/locale/src/locale-help.pd new file mode 100644 index 0000000..20da938 --- /dev/null +++ b/locale/src/locale-help.pd @@ -0,0 +1,33 @@ +#N canvas 50 16 604 376 10; +#X text 56 7 locale : access to C99-style localization; +#X obj 41 298 locale; +#X obj 41 320 print locale-out; +#X text 262 342 Bryan Jurish ; +#X msg 41 48 set; +#X text 222 49 "set" : initialize locale from environment variables +; +#X msg 47 68 set LC_CTYPE de_DE.UTF-8; +#X msg 50 107 get; +#X msg 56 127 get LC_CTYPE; +#X text 226 128 "get CATEGORY" : get value for CATEGORY; +#X text 226 107 "get" : symbol representing current locale; +#X msg 66 193 reset; +#X text 226 189 "reset" : alias for "set LC_ALL C"; +#X text 130 216 WARNING:; +#X text 150 229 Injudicious use of "set" can cause bizarre and unexpected +results. In particular \, setting LC_NUMERIC (possibly via LC_ALL or +LANG) to a locale whose floats are comma-separated rather than dot-separated +(e.g. de_DE) can confuse Pd's underlying float-parsing mechanism.; +#X msg 66 173 bang; +#X text 226 173 "bang" : alias for "set"; +#X text 224 69 "set CATEGORY VALUE" : set CATEGORY to VALUE; +#X msg 64 151 which; +#X text 226 153 "which" : list supported categories; +#X connect 1 0 2 0; +#X connect 4 0 1 0; +#X connect 6 0 1 0; +#X connect 7 0 1 0; +#X connect 8 0 1 0; +#X connect 11 0 1 0; +#X connect 15 0 1 0; +#X connect 18 0 1 0; -- cgit v1.2.1