Changeset 2453 in kBuild
- Timestamp:
- Jul 7, 2011 7:44:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sed/sed/sed.c
r1304 r2453 116 116 fprintf(out, _(" -l N, --line-length=N\n\ 117 117 specify the desired line-wrap length for the `l' command\n")); 118 #ifndef CONFIG_WITHOUT_O_LANG_C 119 fprintf(out, _(" --lang_c\n\ 120 specify C locale\n")); 121 #endif 118 122 fprintf(out, _(" --posix\n\ 119 123 disable all GNU extensions.\n")); … … 177 181 {"in-place", 2, NULL, 'i'}, 178 182 {"line-length", 1, NULL, 'l'}, 183 #ifndef CONFIG_WITHOUT_O_LANG_C 184 {"lang_c", 0, NULL, 'L'}, 185 #endif 179 186 {"quiet", 0, NULL, 'n'}, 180 187 {"posix", 0, NULL, 'p'}, … … 290 297 break; 291 298 299 #ifndef CONFIG_WITHOUT_O_LANG_C 300 case 'L': 301 setlocale (LC_ALL, "C"); 302 initialize_mbcs (); 303 # if ENABLE_NLS 304 bindtextdomain (PACKAGE, LOCALEDIR); 305 textdomain (PACKAGE); 306 # endif 307 break; 308 #endif 309 292 310 #ifndef CONFIG_WITHOUT_O_OPT 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 311 case 'o': 312 sed_stdout = ck_fopen (optarg, "w", true /* fail on error */); 313 break; 314 315 case 300: 316 sed_stdout = ck_fopen (optarg, "wb", true /* fail on error */); 317 break; 318 319 case 301: 320 sed_stdout = ck_fopen (optarg, "wt", true /* fail on error */); 321 break; 322 323 case 302: 324 sed_stdout = ck_fopen (optarg, "a", true /* fail on error */); 325 break; 326 327 case 303: 328 sed_stdout = ck_fopen (optarg, "ab", true /* fail on error */); 329 break; 330 331 case 304: 332 sed_stdout = ck_fopen (optarg, "at", true /* fail on error */); 333 break; 316 334 #endif 317 335
Note:
See TracChangeset
for help on using the changeset viewer.