Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: UTF-8 and systemIO are not friends anymore (unfortunate)

by Anonymous Monk
on Dec 31, 2015 at 01:12 UTC ( [id://1151553]=note: print w/replies, xml ) Need Help??


in reply to Re: UTF-8 and systemIO are not friends anymore (unfortunate)
in thread UTF-8 and systemIO are not friends anymore

t seems rather nonsensical to me
Why? Perl's sysread:
sysread FILEHANDLE,SCALAR,LENGTH,OFFSET
(my system's) pread:
ssize_t pread(int fd, void *buf, size_t count, off_t offset);
How can it work with anything other than bytes and still call itself sys-something? (even if Perl's pread is actually lseek and read... that doesn't change much wrt utf-8)

Replies are listed 'Best First'.
Re^3: UTF-8 and systemIO are not friends anymore (unfortunate)
by Anonymous Monk on Dec 31, 2015 at 01:29 UTC
    LOL! Shows how much I use sysread... But anyway, the argument about seek stands. But sorry! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1151553]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (11)
As of 2024-04-23 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found