Skip Menu |

This queue is for tickets about the Arthas-Defaults CPAN distribution.

Report information
The Basics
Id: 74667
Status: resolved
Priority: 0/
Queue: Arthas-Defaults

People
Owner: Nobody in particular
Requestors: apeiron [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.0.1



Subject: "use utf8;" probably does not do what you think it does.
The utf8 pragma is to indicate to perl that your source code contains UTF8 characters. It has nothing to do with encoding/decoding UTF8 data. As such it should likely be removed from this module's imports. ... unless you *are* using UTF8 characters in your source code, in which case I'd like to see where out of curiosity. :)
Hello! You're assumption that I don't know what "use utf8" does is wrong, and rushed. ;) I happen to use UTF-8 in the source code every now and then, just because I like to, so I imported the pragma. However, since you say it should be removed, I'm curious: does it do any harm to keep it? Thanks, Michele.
Subject: Re: [rt.cpan.org #74667] "use utf8;" probably does not do what you think it does.
Date: Fri, 3 Feb 2012 17:20:24 -0500
To: bug-Arthas-Defaults [...] rt.cpan.org
From: Chris Nehren <apeiron [...] cpan.org>
On Feb 3, 2012, at 17:18, Michele Beltrame via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=74667 > > > Hello! > > You're assumption that I don't know what "use utf8" does is wrong, and > rushed. ;) > > I happen to use UTF-8 in the source code every now and then, just > because I like to, so I imported the pragma. > > However, since you say it should be removed, I'm curious: does it do any > harm to keep it?
No, it does no harm to keep it. It's just very frequently misused. Feel free to close this. -- Thanks and best regards, Chris Nehren
Hello! Show quoted text
> No, it does no harm to keep it. It's just very frequently misused. Feel > free to close this.
You're right. I think I'll add a note to the documentation saying why "use utf8" is there and what it does, so the (few) people taking a look at my module won't be misguided. I don't like to be responsible for teaching wrong pratices. :-) Cheers, Michele.
Subject: Re: [rt.cpan.org #74667] "use utf8;" probably does not do what you think it does.
Date: Fri, 3 Feb 2012 17:23:41 -0500
To: bug-Arthas-Defaults [...] rt.cpan.org
From: Chris Nehren <apeiron [...] cpan.org>
On Feb 3, 2012, at 17:23, Michele Beltrame via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=74667 > > > Hello! >
>> No, it does no harm to keep it. It's just very frequently misused. Feel >> free to close this.
> > You're right. I think I'll add a note to the documentation saying why > "use utf8" is there and what it does, so the (few) people taking a look > at my module won't be misguided. I don't like to be responsible for > teaching wrong pratices. :-)
Excellent, thank you! -- Thanks and best regards, Chris Nehren