Commit 9dd2eab
committed
fix(mysql): ensure generating "utf8" for charset
When there are no "charset" files, nothing has been generated although
we intended to at least generate "utf8". The check for the number of
generated candidates should be performed after generating "utf8". The
wrong check has been introduced in commit 08dd2cd.
Originally, we have been performing the pathname expansions without
adjusting "nullglob", so the pattern "/usr/share/mysql/charsets/*.xml"
has been directly strayed into the array "charsets" unless "nullgob"
is set. Then the check has been always passed when "nullglob" is not
set, which is the reason that we have been missing the problem until
now.1 parent 5d49f24 commit 9dd2eab
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments