* segfault with iconv
@ 2018-08-06 3:05 cyg Simple
2018-08-06 3:55 ` Steven Penny
0 siblings, 1 reply; 3+ messages in thread
From: cyg Simple @ 2018-08-06 3:05 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 132 bytes --]
I'm getting a segfault with iconv with the attached script. Do others
have this problem? TIA for the information.
--
cyg Simple
[-- Attachment #2: iconv-seg-fault --]
[-- Type: text/plain, Size: 335 bytes --]
#!/bin/sh
options_ascii='--unicode-subst=<U+%04X> --byte-subst=<0x%02x> --widechar-subst=<%08x>'
# Test of --byte-subst with an ASCII substitution.
cat > tmp-in <<\EOF
Böse Bübchen
EOF
/usr/bin/iconv $options_ascii -f ASCII -t ASCII < tmp-in > tmp-out
cat > tmp-ok <<\EOF
B<0xc3><0xb6>se B<0xc3><0xbc>bchen
EOF
cmp tmp-out tmp-ok
[-- Attachment #3: Type: text/plain, Size: 219 bytes --]
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: segfault with iconv
2018-08-06 3:05 segfault with iconv cyg Simple
@ 2018-08-06 3:55 ` Steven Penny
2018-08-06 19:15 ` cyg Simple
0 siblings, 1 reply; 3+ messages in thread
From: Steven Penny @ 2018-08-06 3:55 UTC (permalink / raw)
To: cygwin
On Sun, 5 Aug 2018 23:04:54, cyg Simple wrote:
> I'm getting a segfault with iconv with the attached script. Do others
> have this problem? TIA for the information.
Not sure what is breaking for you - but works fine here:
$ echo böse bübchen > infile.txt
$ LC_ALL=C iconv --byte-subst '<%X>' -f ASCII -t ASCII infile.txt
b<C3><B6>se b<C3><BC>bchen
$ LC_ALL=en_US.UTF-8 iconv --byte-subst '<%X>' -f ASCII -t ASCII infile.txt
b<C3><B6>se b<C3><BC>bchen
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: segfault with iconv
2018-08-06 3:55 ` Steven Penny
@ 2018-08-06 19:15 ` cyg Simple
0 siblings, 0 replies; 3+ messages in thread
From: cyg Simple @ 2018-08-06 19:15 UTC (permalink / raw)
To: cygwin
On 8/5/2018 11:55 PM, Steven Penny wrote:
> On Sun, 5 Aug 2018 23:04:54, cyg Simple wrote:
>> I'm getting a segfault with iconv with the attached script. Do others
>> have this problem? TIA for the information.
>
> Not sure what is breaking for you - but works fine here:
>
>   $ echo böse bübchen > infile.txt
>
> Â Â $ LC_ALL=C iconv --byte-subst '<%X>' -f ASCII -t ASCII infile.txt
> Â Â b<C3><B6>se b<C3><BC>bchen
>
> Â Â $ LC_ALL=en_US.UTF-8 iconv --byte-subst '<%X>' -f ASCII -t ASCII
> infile.txt
> Â Â b<C3><B6>se b<C3><BC>bchen
>
Thanks for checking. My problem has been resolved with a reinstall.
--
cyg Simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-06 19:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-06 3:05 segfault with iconv cyg Simple
2018-08-06 3:55 ` Steven Penny
2018-08-06 19:15 ` cyg Simple
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).