nl_langinfo: Simplify case ladder
The NONE:US-ASCII case isn't necessary. The "NONE:" case will handle US-ASCII, so let's remove the redundant handling. Submitted by: marino Obtained from: DragonflyBSD
This commit is contained in:
parent
ad3c3dbe18
commit
403105944d
@ -72,8 +72,6 @@ nl_langinfo_l(nl_item item, locale_t loc)
|
|||||||
ret = "SJIS";
|
ret = "SJIS";
|
||||||
else if (strcmp(s, "NONE") == 0)
|
else if (strcmp(s, "NONE") == 0)
|
||||||
ret = "POSIX";
|
ret = "POSIX";
|
||||||
else if (strcmp(s, "NONE:US-ASCII") == 0)
|
|
||||||
ret = "US-ASCII";
|
|
||||||
else if (strncmp(s, "NONE:", 5) == 0)
|
else if (strncmp(s, "NONE:", 5) == 0)
|
||||||
ret = (char *)(s + 5);
|
ret = (char *)(s + 5);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user