From 6ce917b1bd4c1b7a0fb77041f2eac00a30b5b08f Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 9 Apr 2008 05:57:12 +0000 Subject: [PATCH] Bugfix bzr revid: fp@tinyerp.com-dbf9cb2293206c3e728bd099c6140b647ef375df --- bin/osv/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'