Re: Call for testing: OpenSSH 7.8

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On 20/08/2018 16:00, Ingo Schwarze wrote:
> AIX:
>  ?

Had to modify it, just a bit (errno.h is probably not needed)

michael@x071:[/data/prj/openbsd/mindrot]cat *.c
#include <errno.h>
#include <langinfo.h>
#include <locale.h>
#include <stdio.h>

static err(int exitcode, char *msg)
{
        fflush(stdout);
        fprintf(stderr,"%s", msg);
        exit(exitcode);
}

int
main(void)
{
        char *res;

        res = setlocale(LC_CTYPE, "C");
        if (res == NULL)
                err(1, "setlocale");
        printf("setlocale -> \"%s\"\n", res);

        res = nl_langinfo(CODESET);
        if (res == NULL)
                err(1, "nl_langinfo");
        printf("nl_langinfo -> \"%s\"\n", res);

        return 0;
}

cc nl_langinfo.c -o nl_langinfo -lc

./nl_langinfo
setlocale -> "C"
nl_langinfo -> "ISO8859-1"

There is a program - /usr/lib/nls/lsmle (just learned about it!)

FYI: First stanza is:

CC:
  locale:         "C"
  text_string:    "C (POSIX)"
  text_string_id: 100
  codeset:        "ISO8859-1"
  messages:       "C"
  keyboards:      "C"
  package:        ""
  variables:      "LANG=C"
  bosinst_menu:   "y"
  menu:           "101 102"

  Keyboard Descriptions (1):
  (1) locale:         "C"
  (1) keyboard_map:   "C"
  (1) text_string:    "C (POSIX)"
  (1) text_string_id: 100
  (1) codeset:        "ISO8859-1"
  (1) package:        ""
  (1) variables:      ""
  (1) keyboard_cmd:   "/usr/bin/chkbd /usr/lib/nls/loc/C.lftkeymap"
  (1) key_text:       "English(POSIX) KBD ID 103P"
  (1) key_text_id:    200

  Message Descriptions (1):
  (1) message Lvalue: "C"
  (1) message string: "C (POSIX)"
  (1) codeset:        "ISO8859-1"
  (1) package:        ""
  (1) variables:      ""



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux