Re: binary compare of scalars

2000-05-04 Thread Gurusamy Sarathy
On Wed, 03 May 2000 17:18:54 BST, Graham Barr wrote: >> -ok $&, pack("C*", ord(">"), 0342, 0230, 0272); >> -$test++; >> +my $tmp = $&; >> +ok $tmp, pack("C*", ord(">"), 0342, 0230, 0272); >> +$test++;# 23 > >Not doing a copy there was deliber

Re: binary compare of scalars

2000-05-04 Thread Gurusamy Sarathy
On Thu, 04 May 2000 15:33:47 +0200, "Stefan Eissing" wrote: >Browsing through sv.c, pp.c and friends, what is the design >philosophy for using SVf_UTF8? It indicates that character semantics apply for that particular SV. > join upgrades to utf8, but should eq >do th

RE: binary compare of scalars

2000-05-04 Thread Stefan Eissing
ECTED]] > Sent: Wednesday, May 03, 2000 5:48 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: binary compare of scalars > > > On Wed, 03 May 2000 10:19:47 +0200, "Stefan Eissing" wrote: > >Background: I have patched DBD::Oracle to recognize ut

Re: binary compare of scalars

2000-05-03 Thread Graham Barr
On Wed, May 03, 2000 at 08:47:31AM -0700, Gurusamy Sarathy wrote: > On Wed, 03 May 2000 10:19:47 +0200, "Stefan Eissing" wrote: > >Background: I have patched DBD::Oracle to recognize utf8 locale > >and return utf8 scalars for Perl 5.6.0. It works. In one of the > >standard tests however, a string

Re: binary compare of scalars

2000-05-03 Thread Gurusamy Sarathy
On Wed, 03 May 2000 10:19:47 +0200, "Stefan Eissing" wrote: >Background: I have patched DBD::Oracle to recognize utf8 locale >and return utf8 scalars for Perl 5.6.0. It works. In one of the >standard tests however, a string with utf8 chars is inserted >into a BLOB, correctly read back again, but n

binary compare of scalars

2000-05-03 Thread Stefan Eissing
I need a portable way to compare two strings, one might be utf8 and one in byte semantic. It should work in all 5.x perl versions without too many $] tests. There is probably a very obvious and good way to do it (and also more than one), which I do not see. Can anyone help? Stefan Background: I