[tarantool-patches] Re: [PATCH 1/1] identifier: do not use ICU UConverter for checks
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sat Apr 7 23:34:21 MSK 2018
Now it works. I changed U8_NEXT_OR_FFFD to U8_NEXT + explicit FFFD check.
On 06/04/2018 16:53, Vladimir Davydov wrote:
> This doesn't work on EL6/7 and Debian Wheezy - check out travis.
>
> https://travis-ci.org/tarantool/tarantool/builds/362116299?utm_source=github_status&utm_medium=notification
>
> On Wed, Apr 04, 2018 at 03:35:41PM +0300, Vladislav Shpilevoy wrote:
>> I makes no sense to create a converter, when there is
>> nothing to convert. To check an identifier it is
>> enough to use stateless ICU macros: U8_NEXT_OR_FFFD,
>> that also allows to eliminate 0xFFFD symbol as a
>> special one - this macros returns this code on any
>> error, or when it is actually this symbol.
>> ---
>> Branch: https://github.com/tarantool/tarantool/tree/identifier-do-not-use-uconverter
>>
>> src/box/box.cc | 2 --
>> src/box/identifier.c | 51 ++++++++++-----------------------------------
>> src/box/identifier.h | 13 ------------
>> test/unit/vy_point_lookup.c | 2 --
>> 4 files changed, 11 insertions(+), 57 deletions(-)
>
More information about the Tarantool-patches
mailing list