saintmike has asked for the wisdom of the Perl Monks concerning the following question:
printsmy $utf8key = "\x{05D0}"; dbmopen(my %hash, "/tmp/mydb", 0666) || die "d'oh!"; $hash{$utf8key} = "bar"; dbmclose(%hash);
Wide character in null operation at ./test.pl line 8.
As checked with Encode::is_utf8, the string in $utf8key has the utf8 flag on.
Is this a bug in the dbm implementation or am I just confused?
It happens with perl5.8.8 and perl5.9.3. Thanks for any help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: utf-8 keys in a tied hash cause warning
by ikegami (Patriarch) on Aug 03, 2006 at 22:22 UTC | |
|
Re: utf-8 keys in a tied hash cause warning
by kwaping (Priest) on Aug 03, 2006 at 22:04 UTC | |
|
Re: utf-8 keys in a tied hash cause warning
by graff (Chancellor) on Aug 04, 2006 at 02:37 UTC | |
by ikegami (Patriarch) on Aug 04, 2006 at 04:32 UTC | |
by Anonymous Monk on Aug 04, 2006 at 09:56 UTC | |
by saintmike (Vicar) on Aug 04, 2006 at 16:16 UTC |