summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2008-04-09 05:57:12 +0000
committerFabien Pinckaers <fp@tinyerp.com>2008-04-09 05:57:12 +0000
commit6ce917b1bd4c1b7a0fb77041f2eac00a30b5b08f (patch)
treeb8100ccb8ac32c09e548b763dbc8c8e9d8325c5f
parent70778e6de40a801e6f80a8e01bc4975a36bb403e (diff)
Bugfix
bzr revid: fp@tinyerp.com-dbf9cb2293206c3e728bd099c6140b647ef375df
-rw-r--r--bin/osv/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/osv/fields.py b/bin/osv/fields.py
index 17685bcdace..8a4004419fa 100644
--- a/bin/osv/fields.py
+++ b/bin/osv/fields.py
@@ -147,7 +147,7 @@ class char(_column):
u_symb = symb
else:
u_symb = unicode(symb)
- return u_symb.encode('utf8')
+ return u_symb.encode('utf8')[:self.size]
class text(_column):
_type = 'text'