Re: Regression test failures on big endian

From: Christoph Berg <myon(at)debian(dot)org>
To: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Regression test failures on big endian
Date: 2016-04-05 08:28:31
Message-ID: 20160405082831.GA4327@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Re: Inoue, Hiroshi 2016-04-05 <5702F6C6(dot)6010707(at)dream(dot)email(dot)ne(dot)jp>
> Hi Christoph,
>
> Sorry for the late reply.

Thanks for the reply :)

> >>! '1234567' (int4) as SQL_C_BINARY: hex: 87D61200
> >>! '1234567' (int4) as SQL_C_BINARY: hex: 0012D687
>
> The difference above is a natural outcome from the difference of endianness.

Ah, on a second look that's indeed the case. I'll blame myself for
still not being comfortable with reading "context" diffs where
original and changed version are way apart.

Thanks for confirming this is an expected change. I'll proceed to
submit some _1.out files.

> >>! '' (text) as SQL_C_WCHAR: \FF00\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF (truncated)
> >>! '' (text) as SQL_C_WCHAR: \ FF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF (truncated)
>
> The difference above means that encoding of Unicode is UTF-16LE whichever
> the endianness is.

Ew. There should be a law forbidding everything except UTF-8 :)

> Is it as you expected?

Thanks for the confirmation!

Christoph

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Christoph Berg 2016-04-05 11:47:56 Re: [PATCH] Regression test failures on big endian
Previous Message Mallela, Anil 2016-04-05 04:40:56 Postgres Streaming replication (version:9.4)