Call for testing: OpenSSH 7.8

Michael aixtools at felt.demon.nl
Tue Aug 21 01:00:17 AEST 2018


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

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

michael at 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:      ""



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20180820/f7cee667/attachment.asc>


More information about the openssh-unix-dev mailing list