From: Bruno H. <br...@cl...> - 2008-04-21 12:57:16
|
Forwarded from Michael <em...@we...>. ------------------------------------------------------- Subject: clisp i18n bug in y-or-n-p Date: Friday 18 April 2008 23:18 From: Michael <em...@we...> The sourceforge bug tracker rejected the submission via the link in the man page (and I rejected the registration form, I admit). Since there was a web-address and an e-mail address there I thought this not too intrusive. man page: 48. SourceForge bug tracker http://sourceforge.net/tracker/?func=add&group_id=1355&atid=101355 response: Artifact: This ArtifactType Does Not Allow Anonymous Submissions. Please Login. ,,The Bug" y-or-n-p prompt is translated, the values accepted are not. [11]> (y-or-n-p "blah") blah (j/n) j Bitte mit j oder n antworten: j Bitte mit j oder n antworten: n NIL [12]> (y-or-n-p "blah") blah (j/n) y T [13]> The repl asks in German for j (or n), but the positive value accepted is still the English one: y. Should this not be translated back from j to y for the comparison, or the comparison value be made $LANG dependent? At least the y should not be translated to j as long as this is not accepted to yield T. Translation to something like (y für Ja|n für Nein) seems also acceptable and is language independent, if y or n is required by the lisp standard for y-or-n-p (if not: consider (+|-) or (x|o)). The setting michael@home:~$ uname -a Linux home 2.6.18-4-k7 #1 SMP Wed May 9 23:42:01 UTC 2007 i686 GNU/Linux michael@home:~$ clisp --version GNU CLISP 2.41 (2006-10-13) (built 3369736691) (memory 3416066831) Software: GNU-C 4.1.2 20061007 (prerelease) (Debian 4.1.1-16) /usr/bin/gcc-4.1 -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -falign-functions=4 -DUNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -x none libcharset.a libavcall.a libcallback.a /usr/lib/libreadline.so -lncurses -ldl -L/usr/lib -lsigsegv SAFETY=0 HEAPCODES LINUX_NOEXEC_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY libsigsegv 2.4 libreadline 5.1 Features: (ASDF CLC-OS-DEBIAN COMMON-LISP-CONTROLLER CLX-ANSI-COMMON-LISP CLX READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX) C Modules: (clisp i18n syscalls regexp readline linux clx) Installation directory: /usr/lib/clisp/ User language: ENGLISH Machine: I686 (I686) localhost [127.0.0.1] michael@home:~$ echo $LANG de_DE.UTF-8 -- [excessively long signature trimmed] ------------------------------------------------------- |
From: Reini U. <ru...@x-...> - 2008-04-21 13:19:08
|
2008/4/21, Bruno Haible: > Forwarded from Michael: > Subject: clisp i18n bug in y-or-n-p > Date: Friday 18 April 2008 23:18 > From: Michael <em...@we...> > > The sourceforge bug tracker rejected the submission via the link in the > man page (and I rejected the registration form, I admit). Since there was > a web-address and an e-mail address there I thought this not too intrusive. I've added it to the tracker as http://sourceforge.net/tracker/index.php?func=detail&aid=1947813&group_id=1355&atid=101355 IMHO "j" or "J" matching the translated prompt should be accepted also. Todo: check other languages if there are contradictions. Out of my head in greek: N(e) is yes there, O(chi) is no. |