]> Sergey Matveev's repositories - public-inbox.git/commit
ds: use bytes::substr and bytes::length module-wide for now
authorEric Wong <e@80x24.org>
Thu, 26 Aug 2021 12:33:32 +0000 (12:33 +0000)
committerEric Wong <e@80x24.org>
Sat, 28 Aug 2021 10:36:59 +0000 (10:36 +0000)
commit70cba5dbade9b1d83ab30fcb2573def773deabe9
treea75150e480d983f2d4b5866ac55729762b72a551
parent5c8909925072804901e9c3b45bbf25446d379e7b
ds: use bytes::substr and bytes::length module-wide for now

The use of substr within IO::Handle->write may not be correct if
we have wide characters, so handle it ourselves.

bytes.pm usage is probably better fixed in PublicInbox::NNTP,
but the effort required is higher, so we'll just keep bytes in
DS for now.
lib/PublicInbox/DS.pm