[Bug 275831] wcstoimax function is missing 'L' qualifier on a character constant
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 275831] wcstoimax function is missing 'L' qualifier on a character constant"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 275831] wcstoimax function is missing 'L' qualifier on a character constant"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 275831] wcstoimax function is missing 'L' qualifier on a character constant"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 275831] wcstoimax function is missing 'L' qualifier on a character constant"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Dec 2023 22:08:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275831 Bug ID: 275831 Summary: wcstoimax function is missing 'L' qualifier on a character constant Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: Paul.Green@stratus.com Please compare lib/libc/locale/wcstoimax.c to lib/libc/locale/wcstoumax.c and you will see that the former file uses the expression: else if (c >= 'a' && c <= 'z') while the latter file uses the expression: else if (c >= L'a' && c <= L'z') The latter expression is correct. This expression ensures that wide character input strings presented to wcstoimax are limited to the characters 0-9, A-Z, and a-z. This bug is present in the initial version of the source file from 2002. -- You are receiving this mail because: You are the assignee for the bug.