mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
2daed13623
PR: 220013 Submitted by: Satoshi TOMIOKA <tomioka.satoshi.ml@gmail.com> Reported by: Yasuhito FUTATSUKI <freebsd-bug-report-yf@yf.bsdclub.org>
14 lines
362 B
C
14 lines
362 B
C
--- ../common/multibyte.c.orig 2017-11-17 21:47:04.305764000 +0900
|
|
+++ ../common/multibyte.c 2017-11-17 21:58:19.218532000 +0900
|
|
@@ -1454,8 +1454,9 @@
|
|
if (maybe == 0)
|
|
return ename;
|
|
|
|
+ if ( (maxfunc!=1) && (try==maybe) ) continue ;
|
|
for (i = 0; i < maxfunc; i++) {
|
|
- if (maybe == (1 << i))
|
|
+ if (maybe & (1 << i))
|
|
return dt->name[i];
|
|
}
|
|
}
|