bug-xboard
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-XBoard] [bug #34980] Promotion in play at ICS fails with localized


From: Byrial Jensen
Subject: [Bug-XBoard] [bug #34980] Promotion in play at ICS fails with localized Xboard
Date: Sat, 03 Dec 2011 21:49:40 +0000
User-agent: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0

URL:
  <http://savannah.gnu.org/bugs/?34980>

                 Summary: Promotion in play at ICS fails with localized Xboard
                 Project: XBoard
            Submitted by: bjensen
            Submitted on: Sat 03 Dec 2011 09:49:39 PM GMT
                Category: XBoard (X11)
                Severity: 3 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None

    _______________________________________________________

Details:

Hi,

I just tried the Danish version of Xboard 4.6.0.20111101 playing at FICS
(freechess.org).

When I tried to promote a pawn using the promotion pop up window, I got an
illegal move response from FICS.

Fortunately I had time to switch to "Almost Always Queen", which worked fine
so I could win the game. :)

Anyway I looked at the function PromotionCallback() in xboard.c and found this
code:

if (strcmp(name, _("Knight")) == 0) {
        promoChar = 'n';
    } else if (strcmp(name, _("Promote")) == 0) {
        promoChar = '+';
    } else if (strcmp(name, _("Defer")) == 0) {
        promoChar = '=';
    } else {
        promoChar = ToLower(name[0]);
    }

So it seems that the variable name contains the translated name of the piece,
and in that case you cannot just send the lowercase version of the first
character to the ICS.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34980>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]