From: "Richard, Francois M" <[EMAIL PROTECTED]>

    > strncpy doesn't and can't recognize the locale:
    > 
    >        The strncpy() function is similar, except that not more than n
    >        bytes of src are copied.

    Here is what I read from "The GNU C Library"
    (http://www.gnu.org/manual/glibc-2.2.3/html_mono/libc.html) in which I
    thought the words "bytes" and "character" were carefully chosen:

No.

    Function: char * strncpy (char *restrict to, const char *restrict from,
    size_t size) 
    This function is similar to strcpy but always copies exactly size
    CHARACTERS into to. 

The man page is correct. The info page should also say
bytes instead of characters to prevent confusion.

Andries
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to