开发者

Which operators and functions expect their string arguments as octets?

开发者 https://www.devze.com 2023-04-07 09:14 出处:网络
Does somew开发者_开发问答here exist a list with all Perl operators and functions which expect their string arguments as octets?

Does somew开发者_开发问答here exist a list with all Perl operators and functions which expect their string arguments as octets?

For example the file test operators need octets ( Question about pathname encoding comment ).

Now I found a code with symlink and I am not sure if I should encode the file names.


It’s simply because the traditional Unix syscalls that Perl either uses or emulates are all defined in terms of bytes, not characters. If you want a UTF-8 encoded or decoded filename, then you have to do that for yourself. You will not get what you want if you do not.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号