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

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

Thread Next
James E Keenan via RT
October 10, 2016 21:44
[perl #129849] utf8 only in vars? (perldoc utf8)
Message ID:
On Mon Oct 10 13:43:36 2016, LAWalsh wrote:
> This is a bug report for perl from,
> generated with the help of perlbug 1.40 running under perl 5.22.0.
> -----------------------------------------------------------------
> [Please describe your issue here]
> In the file lib/, 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/ in perl-5.24.0:

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 (

via perlbug:  queue: perl5 status: new

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About