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/


_______________________________________________
Bug-XBoard mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-xboard

Reply via email to