pld-builder: file-sender.sh (HEAD) load-balancer.sh (HEAD) request-fetcher.sh (HEAD) request-handler.sh (HEAD) rpm-builder.s

Artur Frysiak wiget w pld-linux.org
Pon, 24 Lis 2003, 23:02:27 CET


On Mon, Nov 24, 2003 at 10:04:56PM +0100, Andrzej Krzysztofowicz wrote:
> Jakub Bogusz wrote:
> > On Mon, Nov 24, 2003 at 09:40:48PM +0100, Andrzej Krzysztofowicz wrote:
> > > Michal Moskal wrote:
> > > > On Mon, Nov 24, 2003 at 05:40:02PM +0100, Andrzej Krzysztofowicz wrote:
> > > 
> > > Zgadza sie. C jest kodowane w CP437.
> > 
> > A nie ascii? CP437 obejmuje znaki 0x80-0xfe, więc nie byłoby problemu
> > przy napotkaniu takich...?
> 
> Sam sie zdziwilem, ale gdzies kiedys znalazlem taka informacje nt. wymagan
> POSIX. Moze ktos to zweryfikuje...
> 
> BTW, gdyby to bylo us-ascii, to sporo man-pages byloby do poprawienia
> (czesto zawieraja znak +/-).
#include <stdio.h>
#include <locale.h>
#include <nl_types.h>
#include <langinfo.h>

int main(int argc, char** argv) {
        char* codeset;
        setlocale(LC_ALL, "C");
        codeset = nl_langinfo(CODESET);
        printf("%s\n", codeset);
        return 0;
}

./l
ANSI_X3.4-1968

<cite>
   [ANSI X3.4] "American National Standard for Information Systems -
        Coded Character Sets - 7-Bit American National Standard Code for
        Information Interchange (7-Bit ASCII)", ANSI X3.4, 1986.
</cite>

-- 
Artur Frysiak
http://www.pld-linux.org/



Więcej informacji o liście dyskusyjnej pld-devel-pl