openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glibc/2.29-r0/git/locale/programs/record-status.c
void pop_locale(struct locale_state ls)
{
    const char* set = NULL;
    /* We might have failed to save the locale, so only attempt to
       restore a validly saved non-NULL locale.  */
    if (ls.cur_locale != NULL)
    {
        set = setlocale(LC_CTYPE, ls.cur_locale);
        if (set == NULL)
            error(0, 0, "failed to restore %s locale!", ls.cur_locale);

        free(ls.cur_locale);
    }
}
/* Use the saved state to restore the locale.  */
Use the saved state to restore the locale.
Use the saved state to restore the locale .
void pop_locale(struct locale_state ls)
{
    const char* set = NULL;
    if (ls.cur_locale != NULL)
    {
        set = setlocale(LC_CTYPE, ls.cur_locale);
        if (set == NULL)
            error(0, 0, "failed to restore %s locale!", ls.cur_locale);
        free(ls.cur_locale);
    }
}
void pop_locale ( struct locale_state ls ) { const char * set = NULL ; if ( ls . cur_locale != NULL ) { set = setlocale ( LC_CTYPE , ls . cur_locale ) ; if ( set == NULL ) error ( 0 , 0 , " " , ls . cur_locale ) ; free ( ls . cur_locale ) ; } }
Use the saved state to restore the locale.
Use the saved state to restore the locale .
/* We might have failed to save the locale, so only attempt to
       restore a validly saved non-NULL locale.  */