Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 23876
Status: resolved
Priority: 0/
Queue: Encode

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

Bug Information
Severity: Normal
Broken in: 2.18
Fixed in: (no value)



Subject: Add documentation for LEAVE_SRC
There is no documentation for the LEAVE_SRC flag to CHECK. This patch adds it. I was on IRC the other day when someone did not understand why his decode($enc, $string, 1) call assigned to $string. Regards, Shlomi Fish
Subject: Encode.pm-document-LEAVE_SRC.diff
--- Encode.pm.orig 2006-12-10 16:59:21.368322807 +0200 +++ Encode.pm 2006-12-10 17:19:13.200241440 +0200 @@ -657,6 +657,12 @@ HTMLCREF 0x0200 XMLCREF 0x0400 +=item Encode::LEAVE_SRC + +If the C<Encode::LEAVE_SRC> bit is not set, but I<CHECK> is, then the second +argument to C<encode()> or C<decode()> may be assigned to by the functions. If +you're not interested in this, then bitwise-or the bitmask with it. + =back =head2 coderef for CHECK
Thanks, applied. Dan the Encode Maintainer On Sun Dec 10 10:25:23 2006, SHLOMIF wrote: Show quoted text
> There is no documentation for the LEAVE_SRC flag to CHECK. This patch > adds it. I was on IRC the other day when someone did not understand > why his decode($enc, $string, 1) call assigned to $string. > > Regards, > > Shlomi Fish