develooper Front page | perl.perl5.porters | Postings from October 2016

[perl #129849] utf8 only in vars? (perldoc utf8)

Thread Next
From:
James E Keenan via RT
Date:
October 10, 2016 21:44
Subject:
[perl #129849] utf8 only in vars? (perldoc utf8)
Message ID:
rt-4.0.24-9156-1476135869-1140.129849-15-0@perl.org
On Mon Oct 10 13:43:36 2016, LAWalsh wrote:
> 
> This is a bug report for perl from perl-diddler@tlinx.org,
> generated with the help of perlbug 1.40 running under perl 5.22.0.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> In the file lib/utf8.pm, it says, under BUGS:
> 
> One can have Unicode in identifier names, but not in package/class or
> subroutine names.  While some limited functionality towards this does
> exist as of Perl 5.8.0, that is more accidental than designed; use of
> Unicode for the said purposes is unsupported.
> ---
> 
> Hasn't perl's unicode support come a bit farther than what was
> provided in 5.8.0?  I was under the impression that any "valid-for-
> class"
> UTF-8 characters were available for use anywhere in a source
>   that had a 'use utf8' in its "header"?
> 
> I've been using it it in functions and variable names for years
> now (though haven't tried it with classes/packages, I'd be surprised
> if they didn't handle unicode as well).
> 
> Please tell me this is an outdated "doco" (cf. typo").
> 
> 

The documentation was changed between 5.22 and 5.24.  Here is the BUGS section of lib/utf8.pm in perl-5.24.0:

#####
BUGS
Some filesystems may not support UTF-8 file names, or they may be supported incompatibly with Perl. Therefore UTF-8 names that are visible
to the filesystem, such as module names may not work.
#####

Thank you very much.


-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=129849

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About