ruby-changes:63504
From: Nobuyoshi <ko1@a...>
Date: Mon, 2 Nov 2020 18:44:57 +0900 (JST)
Subject: [ruby-changes:63504] 539b89075a (master): Compare boolean values for parser pragma locale-insensitively
https://git.ruby-lang.org/ruby.git/commit/?id=539b89075a From 539b89075a61f27c8b5b5cd749f66bda47bc78b0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 2 Nov 2020 18:24:45 +0900 Subject: Compare boolean values for parser pragma locale-insensitively diff --git a/parse.y b/parse.y index 87ec408..eef742c 100644 --- a/parse.y +++ b/parse.y @@ -7916,12 +7916,12 @@ parser_get_bool(struct parser_params *p, const char *name, const char *val) https://github.com/ruby/ruby/blob/trunk/parse.y#L7916 { switch (*val) { case 't': case 'T': - if (strcasecmp(val, "true") == 0) { + if (STRCASECMP(val, "true") == 0) { return TRUE; } break; case 'f': case 'F': - if (strcasecmp(val, "false") == 0) { + if (STRCASECMP(val, "false") == 0) { return FALSE; } break; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/