Debian Bug report logs - #665757
FTBFS on kfreebsd (IUTF8 termio is not POSIX) patch attached

version graph

Package: mosh; Maintainer for mosh is Keith Winstein <[email protected]>; Source for mosh is src:mosh (PTS, buildd, popcon).

Reported by: Christoph Egger <[email protected]>

Date: Sun, 25 Mar 2012 18:03:02 UTC

Severity: important

Found in version mosh/1.1-1

Done: Keith Winstein <[email protected]>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Information forwarded to [email protected], [email protected], Keith Winstein <[email protected]>:
Bug#665757; Package mosh. (Sun, 25 Mar 2012 18:03:05 GMT) (full text, mbox, link).


Acknowledgement sent to Christoph Egger <[email protected]>:
Extra info received and forwarded to list. Copy sent to [email protected], Keith Winstein <[email protected]>. (Sun, 25 Mar 2012 18:03:05 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Christoph Egger <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: FTBFS on kfreebsd (IUTF8 termio is not POSIX) patch attached
Date: Sun, 25 Mar 2012 19:59:23 +0200
[Message part 1 (text/plain, inline)]
Package: mosh
Version: 1.1-1
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd

the IUTF8 termio constant isn't POSIX and isn't used on freebsd. We
still have UTF-8 enabled terminals though. Find below a patch I used
to make it build&work on Debian GNU/kFreeBSD

Regards

    Christoph

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mosh depends on:
ii  libc0.1         2.13-27
ii  libgcc1         1:4.7.0-1
ii  libio-pty-perl  1:1.08-1+b2
ii  libncurses5     5.9-4
ii  libprotobuf7    2.4.1-1
ii  libstdc++6      4.7.0-1
ii  libtinfo5       5.9-4
ii  libutempter0    1.1.5-4
ii  openssh-client  1:5.9p1-4
ii  zlib1g          1:1.2.6.dfsg-2

mosh recommends no packages.

mosh suggests no packages.

-- no debconf information
[kfreebsd (text/x-diff, attachment)]

Information forwarded to [email protected], Keith Winstein <[email protected]>:
Bug#665757; Package mosh. (Mon, 26 Mar 2012 23:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Keith Winstein <[email protected]>:
Extra info received and forwarded to list. Copy sent to Keith Winstein <[email protected]>. (Mon, 26 Mar 2012 23:00:03 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Keith Winstein <[email protected]>
To: Christoph Egger <[email protected]>, [email protected]
Cc: Debian Bug Tracking System <[email protected]>, [email protected], [email protected], Keith Winstein <[email protected]>
Subject: Re: Bug#665757: FTBFS on kfreebsd (IUTF8 termio is not POSIX) patch attached
Date: Mon, 26 Mar 2012 18:56:08 -0400 (EDT)
[Message part 1 (text/plain, inline)]
Hello,

Thanks for filing this. I can't take this patch as written, but I am very 
interested in getting mosh working on FreeBSD.

(1) We need and use IUTF8 on Mac OS X (XNU), so #ifdef __linux__ is not 
quite the right test.

(2) On platforms without IUTF8, we still need _some_ solution to the 
"deletion of multibyte characters" problem.

If you can tell me what mechanism FreeBSD uses to avoid this problem so 
that backspace works correctly in non-canonical mode with non-US-ASCII 
characters, I'm happy to make mosh enable it.

Here's how to demonstrate the problem:

(1) Open a UTF-8 terminal emulator.

(2) Run "cat > /tmp/test.txt"

(3) Type (or paste): "The problem’s not obvious.", including the curly 
Unicode apostrophe (U+2019) after "problem". Do not type a carriage return 
at the end of the line.

(4) Hit the backspace key 15 times to back up to "The problem".

(5) Type " is not obvious." and hit carriage return and then ^D.

(5a) You should see "The problem is not obvious." on the screen.

(6) Run "cat /tmp/test.txt"

(7) With IUTF8, the apostrophe will have been correctly deleted, and you 
should see "The problem is not obvious." (just as you saw when typing it)

(8) Without IUTF8, the kernel will not have correctly deleted the 
(three-byte) apostrophe, and you should see "The problem<?> is not 
obvious." (with the Unicode replacement character in place of <?>)

(8a) If you run "od -c /tmp/test.txt", you'll see it has garbage after the 
word "problem".

===

On the other hand, if FreeBSD really just has this bug and there is no way 
to fix it yet, I guess we can disable the use of IUTF8 on FreeBSD if 
that's what it takes to get mosh running... :-/ Perhaps the right approach 
is an autoconf test to see whether the platform has IUTF8.

Best regards, and thanks for using/testing mosh,
Keith

On Sun, 25 Mar 2012, Christoph Egger wrote:

> Package: mosh
> Version: 1.1-1
> Severity: important
> Tags: patch
> User: [email protected]
> Usertags: kfreebsd
>
> the IUTF8 termio constant isn't POSIX and isn't used on freebsd. We
> still have UTF-8 enabled terminals though. Find below a patch I used
> to make it build&work on Debian GNU/kFreeBSD
>
> Regards
>
>    Christoph
>
> -- System Information:
> Debian Release: wheezy/sid
>  APT prefers unstable
>  APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: kfreebsd-amd64 (x86_64)
>
> Kernel: kFreeBSD 9.0-1-amd64
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages mosh depends on:
> ii  libc0.1         2.13-27
> ii  libgcc1         1:4.7.0-1
> ii  libio-pty-perl  1:1.08-1+b2
> ii  libncurses5     5.9-4
> ii  libprotobuf7    2.4.1-1
> ii  libstdc++6      4.7.0-1
> ii  libtinfo5       5.9-4
> ii  libutempter0    1.1.5-4
> ii  openssh-client  1:5.9p1-4
> ii  zlib1g          1:1.2.6.dfsg-2
>
> mosh recommends no packages.
>
> mosh suggests no packages.
>
> -- no debconf information
>

Information forwarded to [email protected], Keith Winstein <[email protected]>:
Bug#665757; Package mosh. (Mon, 26 Mar 2012 23:00:05 GMT) (full text, mbox, link).


Acknowledgement sent to Keith Winstein <[email protected]>:
Extra info received and forwarded to list. Copy sent to Keith Winstein <[email protected]>. (Mon, 26 Mar 2012 23:00:05 GMT) (full text, mbox, link).


Removed tag(s) patch. Request was from Keith Winstein <[email protected]> to [email protected]. (Mon, 26 Mar 2012 23:03:06 GMT) (full text, mbox, link).


Information forwarded to [email protected]:
Bug#665757; Package mosh. (Sat, 31 Mar 2012 23:57:02 GMT) (full text, mbox, link).


Acknowledgement sent to Keith Winstein <[email protected]>:
Extra info received and forwarded to list. (Sat, 31 Mar 2012 23:57:02 GMT) (full text, mbox, link).


Message #22 received at [email protected] (full text, mbox, reply):

From: Keith Winstein <[email protected]>
To: Christoph Egger <[email protected]>, [email protected]
Subject: Re: Bug#665757: FTBFS on kfreebsd (IUTF8 termio is not POSIX) patch attached
Date: Sat, 31 Mar 2012 19:52:36 -0400
Further testing indicates that FreeBSD just doesn't have working UTF-8
character-erase (yet); the kernel does leave garbage in the input
buffer when it tries to erase a multibyte character in canonical mode.

We decided to just add an autoconf test for IUTF8, triggering a patch
along the lines submitted here. mosh-server also prints a warning on
startup in that case.

This has been pushed to master at http://github.com/keithw/mosh and I
would be grateful if you could let me know if it works for you.

This will be in the next version of the Debian package (1.1.3-1).

Best regards, and thank you,
Keith




Reply sent to Keith Winstein <[email protected]>:
You have taken responsibility. (Mon, 09 Apr 2012 18:15:04 GMT) (full text, mbox, link).


Notification sent to Christoph Egger <[email protected]>:
Bug acknowledged by developer. (Mon, 09 Apr 2012 18:15:04 GMT) (full text, mbox, link).


Message #27 received at [email protected] (full text, mbox, reply):

From: Keith Winstein <[email protected]>
To: [email protected]
Subject: Re: Bug#665757: FTBFS on kfreebsd (IUTF8 termio is not POSIX) patch attached
Date: Mon, 9 Apr 2012 14:12:27 -0400
Fixed as described.




Bug archived. Request was from Debbugs Internal Request <[email protected]> to [email protected]. (Tue, 08 May 2012 07:39:40 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sat Dec 27 00:22:39 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.