Skip to content

Commit

Permalink
applied patch from Sylvain Laperche. Fix bug #136 (localization issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolinh committed May 30, 2012
1 parent 18ef436 commit a4e786f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,28 +831,28 @@ colortostr(int color)
int
colortoint(char *col)
{
if (strcmp(col, _("black")) == 0)
if (strcoll(col, _("black")) == 0)
return BLACK;
/* NOTREACHED */
else if (strcmp(col, _("red")) == 0)
else if (strcoll(col, _("red")) == 0)
return RED;
/* NOTREACHED */
else if (strcmp(col, _("green")) == 0)
else if (strcoll(col, _("green")) == 0)
return GREEN;
/* NOTREACHED */
else if (strcmp(col, _("yellow")) == 0)
else if (strcoll(col, _("yellow")) == 0)
return YELLOW;
/* NOTREACHED */
else if (strcmp(col, _("blue")) == 0)
else if (strcoll(col, _("blue")) == 0)
return BLUE;
/* NOTREACHED */
else if (strcmp(col, _("magenta")) == 0)
else if (strcoll(col, _("magenta")) == 0)
return MAGENTA;
/* NOTREACHED */
else if (strcmp(col, _("cyan")) == 0)
else if (strcoll(col, _("cyan")) == 0)
return CYAN;
/* NOTREACHED */
else if (strcmp(col, _("white")) == 0)
else if (strcoll(col, _("white")) == 0)
return WHITE;
/* NOTREACHED */
else
Expand Down

0 comments on commit a4e786f

Please sign in to comment.