From: Alexander Shiryaev Date: Wed, 14 Nov 2012 18:07:12 +0000 (+0400) Subject: OpenBSD Libc strerrorcase generator fixed X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=63520c729febaf1d7ffbf00dfd6638edb2049613;p=bbcp.git OpenBSD Libc strerrorcase generator fixed --- 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()