#468 y-or-n-p i18n - german "j" rejected

lisp error
closed-works-for-me
clisp (525)
5
2008-04-26
2008-04-21
Reini Urban
No

Subject: clisp i18n bug in y-or-n-p
Date: Friday 18 April 2008 23:18
From: Michael <empro2@web.de>

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)).

rurban:
IMHO JjYy/Nn should be accepted for german.
patch following.

Discussion

  • Reini Urban

    Reini Urban - 2008-04-21
    • assigned_to: haible --> sds
     
  • Reini Urban

    Reini Urban - 2008-04-21

    Logged In: YES
    user_id=13755
    Originator: YES

    Works fine with latest release.

    $ clisp -norc -q -L DEUTSCH
    [1]> (y-or-n-p "Wirklich?")
    Wirklich? (j/n) j
    T
    [2]>

    GNU CLISP 2.44

     
  • Reini Urban

    Reini Urban - 2008-04-21
    • status: open --> closed-rejected
     
  • Bruno Haible

    Bruno Haible - 2008-04-26

    Logged In: YES
    user_id=5923
    Originator: NO

    Works also fine with clisp 2.41, built from source on SuSE Linux:

    $ echo $LANG
    de_DE.UTF-8
    $ /packages/gnu-inst-clisp/2.41/bin/clisp -q
    ;; Datei /home/bruno/.clisprc wird geladen...
    ;; Datei /home/bruno/.clisprc ist geladen.
    [1]> (y-or-n-p "blah")
    blah (j/n) j
    T

    The reporter did not mention his relevant environment variables (LANG, LC_*, LANGUAGE).

     
  • Bruno Haible

    Bruno Haible - 2008-04-26
    • status: closed-rejected --> closed-works-for-me
     

Log in to post a comment.