Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libs/libc/locale/langinfo: implement the nl_langinfo function #9662

Merged
merged 1 commit into from Jul 2, 2023

Conversation

extinguish
Copy link

Summary

  1. the nl_langinfo can help to pass the ltp/open_posix_testsuite/strftime testcases
  2. the implementation are referred to https://pubs.opengroup.org/onlinepubs/9699919799/functions/nl_langinfo.html

Impact

Testing

1. the nl_langinfo can help to pass the
ltp/open_posix_testsuite/strftime testcases
2. the implementation are referred to https://pubs.opengroup.org/onlinepubs/9699919799/functions/nl_langinfo.html

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 4af8c58 into apache:master Jul 2, 2023
23 of 26 checks passed
Comment on lines +152 to +163
case ERA:
return "";
case ERA_D_FMT:
return "";
case ALT_DIGITS:
return "";
case ERA_D_T_FMT:
return "";
case ERA_T_FMT:
return "";
case CRNCYSTR:
return "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend it to

Suggested change
case ERA:
return "";
case ERA_D_FMT:
return "";
case ALT_DIGITS:
return "";
case ERA_D_T_FMT:
return "";
case ERA_T_FMT:
return "";
case CRNCYSTR:
return "";
case ERA:
case ERA_D_FMT:
case ALT_DIGITS:
case ERA_D_T_FMT:
case ERA_T_FMT:
case CRNCYSTR:
default:
break;

@jerpelea jerpelea added this to To-Add in Release Notes - 12.3.0 Sep 26, 2023
@jerpelea jerpelea moved this from To-Add to core in Release Notes - 12.3.0 Sep 27, 2023
@jerpelea jerpelea moved this from core to done in Release Notes - 12.3.0 Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants