← Back to team overview

openerp-india team mailing list archive

[Bug 1081534] [NEW] osv_memory read function does not return unicode

 

Public bug reported:

On server 6.0, revno 3642:

read calls on osv and osv_memory does not return the same thing:
osv returns a nice unicode but osv_memory returns an str

Example:
write 'ééééééééééé' both on an osv (res.users signature field for example) and an osv_memory text field.
and then read those 2 fields, that's what you will get:

osv_read: u'\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9'
osv_memory_read: '\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9'

To test it, you can install the module provided in attachment that does
just that.

** Affects: openobject-server
     Importance: Undecided
         Status: New

** Attachment added: "osv_memory_read.tar.gz"
   https://bugs.launchpad.net/bugs/1081534/+attachment/3440195/+files/osv_memory_read.tar.gz

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1081534

Title:
  osv_memory read function does not return unicode

Status in OpenERP Server:
  New

Bug description:
  On server 6.0, revno 3642:

  read calls on osv and osv_memory does not return the same thing:
  osv returns a nice unicode but osv_memory returns an str

  Example:
  write 'ééééééééééé' both on an osv (res.users signature field for example) and an osv_memory text field.
  and then read those 2 fields, that's what you will get:

  osv_read: u'\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9'
  osv_memory_read: '\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9'

  To test it, you can install the module provided in attachment that
  does just that.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1081534/+subscriptions


Follow ups

References