From 63520c729febaf1d7ffbf00dfd6638edb2049613 Mon Sep 17 00:00:00 2001 From: Alexander Shiryaev Date: Wed, 14 Nov 2012 22:07:12 +0400 Subject: [PATCH] OpenBSD Libc strerrorcase generator fixed --- Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py b/Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py index 4059ecf..a5bdc0b 100755 --- a/Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py +++ b/Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py @@ -10,8 +10,9 @@ def main (): if line == '': break code, s = string.split(line.rstrip(), ', ', maxsplit=1) - s1 = s[0].lower() + s[1:] - print '| %s.%s: s := "%s, %s"' % (MOD, code, code, s1) + if s[1].lower() == s[1]: + s = s[0].lower() + s[1:] + print '| %s.%s: s := "%s, %s"' % (MOD, code, code, s) if __name__ == '__main__': main() -- 2.29.2