lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] What encoding does wx_test console output use?


From: Greg Chicares
Subject: Re: [lmi] What encoding does wx_test console output use?
Date: Fri, 14 Sep 2018 18:30:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 2018-09-08 14:28, Greg Chicares wrote:
> On 2018-09-08 12:36, Vadim Zeitlin wrote:
>> On Sat, 8 Sep 2018 09:57:24 +0000 Greg Chicares <address@hidden> wrote:
>> 
>> GC> $wine ./wx_test --ash_nazg --data_path=/opt/lmi/data --pyx=only_new_pdf 
>> >../src/lmi/wx_test_output
>> GC> $file -bi wx_test_output
>> GC> application/octet-stream; charset=binary
>> GC> 
>> GC> I'd like to filter this, removing expected lines and leaving only
>> GC> unexpected--much as 'nychthemeral_test.sh' does for other tests
>> GC> with its '_clutter' sed scripts. I suppose
>> GC>   iconv -t UTF-8 -f SOME_ENCODING wx_test_output
>> GC> might work, for some value (what?) of SOME_ENCODING.
>> 
>>  Under "genuine" MSW it would be UTF-16, but I didn't test if it was the
>> same thing under Wine. I'd expect it to be...
> 
> Yes, thanks, this converts it:
>   iconv -t UTF-8 -f UTF-16

Unfortunately, some output converted to Chinese characters. I figured out
that the source must be 'wine', because what I saw closely matched this:

$echo "In file /cache_for_lmi/vcs/wxWidgets/src/msw/mdi.cpp at line 1488: 
'SendMessage(WM_MDISETMENU)' failed with error 0x00000578 (Invalid window 
handle.)." |iconv -f UTF-16 -t UTF-8
湉映汩⁥振捡敨晟牯江業瘯獣眯坸摩敧獴猯捲洯睳洯楤挮灰愠⁴楬敮ㄠ㠴㨸✠敓摮敍獳条⡥䵗䵟䥄䕓䵔久⥕‧慦汩摥眠瑩⁨牥潲⁲砰〰〰㔰㠷⠠湉慶楬⁤楷摮睯栠湡汤⹥⸩

This isn't the first problem that 'wide' characters have caused us:
  https://lists.nongnu.org/archive/html/lmi/2016-02/msg00022.html
so I changed the tests to emit ASCII.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]