Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alsoft:lfs
vim
xxd-locale.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xxd-locale.patch of Package vim
diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c index 8429b98..8016309 100644 --- a/src/xxd/xxd.c +++ b/src/xxd/xxd.c @@ -98,7 +98,7 @@ #if __MWERKS__ && !defined(BEBOX) # include <unix.h> /* for fdopen() on MAC */ #endif - +#include <locale.h> /* This corrects the problem of missing prototypes for certain functions * in some GNU installations (e.g. SunOS 4.1.x). @@ -591,6 +591,12 @@ main(int argc, char *argv[]) if (no_color == NULL || no_color[0] == '\0') color = enable_color(); + char *lang=getenv("LANG"); + if(!lang) lang=getenv("LC_ALL"); + if(!lang) lang=getenv("LC_CTYPE"); + if(lang) + setlocale(LC_ALL, lang); + #ifdef AMIGA /* This program doesn't work when started from the Workbench */ if (argc == 0)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor