Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: tarantool-patches@freelists.org,
	Vladimir Davydov <vdavydov.dev@gmail.com>
Subject: Re: [tarantool-patches] Re: [PATCH 1/1] identifier: do not use ICU UConverter for checks
Date: Sat, 7 Apr 2018 23:34:21 +0300	[thread overview]
Message-ID: <647f33dc-797c-88ea-a585-bec6cb56d893@tarantool.org> (raw)
In-Reply-To: <20180406135302.fhv6kn5e5k7v2gvk@esperanza>

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(-)
> 

  reply	other threads:[~2018-04-07 20:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-04 12:35 Vladislav Shpilevoy
2018-04-04 12:38 ` [tarantool-patches] " Vladislav Shpilevoy
2018-04-06 13:53 ` Vladimir Davydov
2018-04-07 20:34   ` Vladislav Shpilevoy [this message]
2018-04-10 10:37     ` [tarantool-patches] " Vladimir Davydov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=647f33dc-797c-88ea-a585-bec6cb56d893@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --cc=vdavydov.dev@gmail.com \
    --subject='Re: [tarantool-patches] Re: [PATCH 1/1] identifier: do not use ICU UConverter for checks' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox