VirtualBox

Changeset 3560 in kBuild


Ignore:
Timestamp:
Mar 8, 2022 9:38:30 AM (3 years ago)
Author:
bird
Message:

sed: build fix for non-windows hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sed/sed/sed.c

    r3554 r3560  
    138138  fprintf(out, _("  -r, --regexp-extended\n\
    139139                 use extended regular expressions in the script.\n"));
    140   fprintf(out, PERL_HELP);
     140  fprintf(out, "%s", PERL_HELP);
    141141  fprintf(out, _("  -s, --separate\n\
    142142                 consider files as separate rather than as a single continuous\n\
     
    297297#ifndef CONFIG_WITHOUT_O_LANG_C
    298298        case 'L':
     299# ifdef KBUILD_OS_WINDOWS
    299300          locale = setlocale (LC_ALL, "C");
    300301          if (getenv("KMK_SED_CODEPAGE_DEBUG"))
    301302            fprintf (stderr, "kmk_sed: codepage=%u locale=%s ACP=%u\n",
    302303                     get_crt_codepage(), locale, get_ansi_codepage());
     304# else
     305          setlocale (LC_ALL, "C");
     306# endif
    303307          initialize_mbcs ();
    304308# if ENABLE_NLS
     
    414418        case 'h':
    415419          usage(0);
     420          break;
    416421        default:
    417422          usage(4);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette