Re: Send UTF-8 encoded massage to tmux session with send-keys

2013-05-31 Thread Nicholas Marriott
Applied the fix, thanks! On Fri, May 31, 2013 at 02:40:34PM +0200, Jacob Bang wrote: >Thanks it works. Have made several tests and checked with md5sum and it >seems it works with this fix. Thanks for you help. :) > >On Fri, May 31, 2013 at 2:32 PM, Nicholas Marriott ><[1]nicholas

Re: Send UTF-8 encoded massage to tmux session with send-keys

2013-05-31 Thread Jacob Bang
Thanks it works. Have made several tests and checked with md5sum and it seems it works with this fix. Thanks for you help. :) On Fri, May 31, 2013 at 2:32 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Hi > > Can you try this change please? > > Index: cmd-send-keys.c > ===

Re: Send UTF-8 encoded massage to tmux session with send-keys

2013-05-31 Thread Nicholas Marriott
Hi Can you try this change please? Index: cmd-send-keys.c === RCS file: /cvs/src/usr.bin/tmux/cmd-send-keys.c,v retrieving revision 1.15 diff -u -p -r1.15 cmd-send-keys.c --- cmd-send-keys.c 24 Mar 2013 09:54:10 - 1.15 +

Re: Send UTF-8 encoded massage to tmux session with send-keys

2013-05-31 Thread Jacob Bang
Here is the result. I have produced the result this way: 1. I started the tmux with: tmux -vvvLtest new 2. In the tmux session i run: cat > testfile 3. In another SSH session i run: tmux -Ltest -u send-keys "æøå" enter 4. To close the tmux session I used ctrl+d two times. Besides the log f

Re: Send UTF-8 encoded massage to tmux session with send-keys

2013-05-31 Thread Nicholas Marriott
Hi Can you run: tmux -vvvLtest new And do the send-keys as below, then exit that tmux and send me the *.log files from the current directory. On Wed, Apr 24, 2013 at 03:18:55PM +0200, Jacob Bang wrote: >If I start a tmux session and stat running an instance of *cat > testfile* >I g

Re: Send UTF-8 encoded massage to tmux session with send-keys

2013-04-24 Thread Jacob Bang
If I start a tmux session and stat running an instance of “cat > testfile” I got a fine example of the problem. This is the text I got when I am trying to write the text directly in the tmux session and read it again with a hex reader (the word is æøå – three Danish letters): C3 A6 C3 B8 C3 A5 Wh

Re: Send UTF-8 encoded massage to tmux session with send-keys

2013-04-24 Thread Nicholas Marriott
What exactly do you get received? You should get the same bytes you put in. On Wed, Apr 24, 2013 at 12:29:08AM +0200, Jacob Bang wrote: >Hi everybody > >I have some problems and I hope some of you can help me. My problem is I >want to send a command to a tmux session from a cron job