>Среда, 16 марта 2016, 17:21 +03:00 от Dimitry Sibiryakov <s...@ibphoenix.com>:
>
>Hello, All.
>
>   In current code I see that isc_spb_utf8_filename in SPB received by 
>IService::start() 
>is completely ignored 
Not ignored but passed to DPBs later

>and all strings are converted into utf-8 basing on content of SPB 
>received by attachServiceManager().
Does this code in attachServiceManager() look like always converted:
        bool utfData = spbWriter.find(isc_spb_utf8_filename);
// skip...
        if (!utfData)
        {
            IntlSpb().toUtf8(spbWriter);
        }


>
>   What is worse, this flag is not inserted into SPB after conversion, so 
>engine has no 
>idea about real state of the strings.
It's inserted in IntlParametersBlock.cpp

    UCHAR utf8Tag = getUtf8Tag();
    if (utf8Tag)
    {
        pb.insertTag(utf8Tag);
    }

    processParametersBlock(strToUtf8, pb);

>
>   Is it expected to work this way?..

it works another way - not like you describe

        bool utfData = spbWriter.find(isc_spb_utf8_filename);

        // Take care about SPB
        setLogin(spbWriter, true);
        if (!utfData)
        {
            IntlSpb().toUtf8(spbWriter);
        }

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to