Re: UTF-8 flags (again)

2004-08-08 Thread Tim Bunce
On Sun, Aug 08, 2004 at 06:15:39PM +0100, Matt Sergeant wrote: > On 8 Aug 2004, at 17:35, David Wheeler wrote: > > >On Aug 8, 2004, at 9:14 AM, Matt Sergeant wrote: > > > >>i.e. for every fetch call, you need to do: > >> > >> SvUTF8_off(AvARRAY(av)[i]); > >> > >>Now, people using your DBD can dec

Re: DBI 2.0 interface change request

2004-08-08 Thread Tim Bunce
On Sun, Aug 08, 2004 at 05:08:38PM +0100, Matt Sergeant wrote: > On 6 Aug 2004, at 08:53, Jochen Wiedmann wrote: > > >Matt Sergeant wrote: > > > >>And easier to implement in C. > > > >I never found any difficulties in the methods handling properties? > > It's the difference between implementing a

Re: UTF-8 flags (again)

2004-08-08 Thread David Wheeler
On Aug 8, 2004, at 10:15 AM, Matt Sergeant wrote: Better IMHO would be an extension to bind_col - it should be trivial to add an attribute in there. The downside being that not many people use bind_col. No, but if it could be integrated with bind_columns(), so that several could be specified at

Re: UTF-8 flags (again)

2004-08-08 Thread Matt Sergeant
On 8 Aug 2004, at 17:35, David Wheeler wrote: On Aug 8, 2004, at 9:14 AM, Matt Sergeant wrote: i.e. for every fetch call, you need to do: SvUTF8_off(AvARRAY(av)[i]); Now, people using your DBD can decide to upgrade the variable if they wish to, but most people who don't need to will be unaffecte

Re: UTF-8 flags (again)

2004-08-08 Thread David Wheeler
On Aug 8, 2004, at 9:14 AM, Matt Sergeant wrote: i.e. for every fetch call, you need to do: SvUTF8_off(AvARRAY(av)[i]); Now, people using your DBD can decide to upgrade the variable if they wish to, but most people who don't need to will be unaffected. I think that this is fine as long as there'

UTF-8 flags (again)

2004-08-08 Thread Matt Sergeant
OK, sorry to bring up everyone's least favourite subject, but I had a conversation with Nick Clark at OSCon, who suggested that the best route to Unicode conformance (for now - until DBIv2) is to actually explicitly turn off the UTF-8 flag when you populate the record AV during fetch(). The rea

Re: DBI 2.0 interface change request

2004-08-08 Thread Matt Sergeant
On 6 Aug 2004, at 08:53, Jochen Wiedmann wrote: Matt Sergeant wrote: And easier to implement in C. I never found any difficulties in the methods handling properties? It's the difference between implementing a function called xyz and doing a string comparison for xyz. It's easier to make it more mo