Skip Menu |

This queue is for tickets about the Cache-Memcached-Fast CPAN distribution.

Report information
The Basics
Id: 70195
Status: resolved
Priority: 0/
Queue: Cache-Memcached-Fast

People
Owner: Nobody in particular
Requestors: kas [...] fi.muni.cz
Cc:
AdminCc:

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



Subject: utf-8 flag is not retained
When storing a scalar value, its utf-8 flag is not stored (or maybe retrieved in get()). The test case is as follows. There is a similar report for Cache::Memcached (w/o ::Fast) at https://rt.cpan.org/Ticket/Display.html?id=28095 #!/usr/bin/perl -w use strict; use Test::More tests => 2; use Cache::Memcached::Fast; use utf8; my $memd = Cache::Memcached::Fast->new({ servers => [ '127.0.0.1:11211', ] }); my $var = 'krteček'; ok(utf8::is_utf8($var)); $memd->set('key', $var); my $read_var = $memd->get('key'); ok(utf8::is_utf8($read_var)); __END__
Enable utf8 support: my $memd = Cache::Memcached::Fast->new({ servers => [ '127.0.0.1:11211', ], utf8 => 1, # RTFM :) });
Dne St 10.srp.2011 10:25:37, KROKI napsal(a): Show quoted text
> Enable utf8 support: > > my $memd = Cache::Memcached::Fast->new({ > servers => [ '127.0.0.1:11211', ], > utf8 => 1, # RTFM :) > });
Thanks, and sorry for the noise :-(
Closing as it was a user mistake (as well as reopening it afterwards).