Commit 9f86fab6 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

Add new localedef(1) stub

parent 4a2c467b
.POSIX:
all: getconf/getconf
all: getconf/getconf localedef/localedef
getconf/getconf:
cd getconf && $(MAKE)
localedef/localedef:
cd localedef && ${MAKE}
clean:
cd getconf && $(MAKE) clean
......@@ -12,3 +15,4 @@ install:
mkdir -p $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/share/man/man1
cd getconf && $(MAKE) install
cd localedef && $(MAKE) install
.POSIX:
CFLAGS=-D _POSIX_C_SOURCE=200809L -D _XOPEN_SOURCE=700
localedef: localedef.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
clean:
-rm localedef
install: localedef
cp localedef $(DESTDIR)/usr/bin/localedef
cp localedef.1 $(DESTDIR)/usr/share/man/man1/localedef.1
.Dd April 9, 2016
.Dt LOCALEDEF 1 "Base Commands Manual"
.Os "Adélie Linux"
.Sh NAME
.Nm localedef
.Nd define a new locale
.Sh SYNOPSIS
.Nm
.Op Fl c
.Op Fl f Ar charmap
.Op Fl i Ar sourcefile
.Op Fl u Ar code_set_name
.Ar name
.Sh DESCRIPTION
This utility returns 3, which is defined in
.St -p1003.1 2013 Edition
as marking that the implementation does not support creation of new locales.
It is intended only for use on musl libc systems, where POSIX2_LOCALEDEF is
undefined.
.Sh DIAGNOSTICS
3: The implementation does not support the creation of new locales.
.Sh SEE ALSO
.Xr locale 1 .
.Sh STANDARDS
Conforming to
.St -p1003.1 2013 Edition.
.Sh AUTHORS
.An A. Wilcox
.Aq awilfox@adelielinux.org
int main(void)
{
return 3;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment