testors (KiHyun Kang)
- Login: testors
- Email: testors@gmail.com
- Registered on: 08/05/2014
- Last sign in: 08/05/2014
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
08/06/2014
-
02:52 AM Ruby Bug #10111: gdbm truncated UTF-8 data problem
- Nobuyoshi Nakada wrote:
> gdbm doesn't preserve encodings now.
gdbm doesn't have to preserve encodings.
ext/dbm works well but ext/gdbm because ext/gdbm is using 'length' to get size.
'length' is not suitable to determine actua...
08/05/2014
-
12:00 PM Ruby Bug #10111 (Rejected): gdbm truncated UTF-8 data problem
- Reproducible script is here.
~~~
# coding: utf-8
require 'gdbm'
data = "\xEA\xB0\x80ABCDEF"
db = GDBM.new( 'test.db', 0666 )
db['key'] = data
throw 'data truncated!!' if db['key'] != data
~~~