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

Re^4: RFC: system calls on Unicode filesystem

by daxim (Curate)
on Feb 28, 2018 at 17:20 UTC ( [id://1210087]=note: print w/replies, xml ) Need Help??


in reply to Re^3: RFC: system calls on Unicode filesystem
in thread RFC: system calls on Unicode filesystem

I have written three attempts at replies with technical details and but I decided to delete them again. I understand all nuances of the problem fully and I am certain you are, too, so writing out the technical details is pointless. We are both looking at a cone and one from the side sees a triangle and one from the bottom sees a circle.

The difference between our perspectives:

  • I chose to live in a world where 'use 5.014; use utf8;' is always in effect.
  • I never use the functions internal to the utf8 module because its documentation says so.
  • It is irrelevant that Perl says $a eq $b is true. In my mind, they are different types. $a is a buf of octets, $b is a string of characters. I have trained myself to notice that it does not even make sense to test for equality without converting one of them first. The only way to convert between the types is the Encode module.
  • Representations are an irrelevant concept. If I have a string, I know it's UTF-8, and system calls on Posix will happily do the right thing.
  • By applying the discipline of the best practices rigorously I will not possibly get myself into a situation where the problem you showed can occur.
  • Comment on Re^4: RFC: system calls on Unicode filesystem

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-20 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found