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
> ===================================================================
> 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 -0000 1.15
> +++ cmd-send-keys.c 31 May 2013 12:32:00 -0000
> @@ -56,7 +56,7 @@ cmd_send_keys_exec(struct cmd *self, str
> struct window_pane *wp;
> struct session *s;
> struct input_ctx *ictx;
> - const char *str;
> + const u_char *str;
> int i, key;
>
> if (cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp) == NULL)
>
>
> On Fri, May 31, 2013 at 02:26:06PM +0200, Jacob Bang wrote:
> > Here is the result. I have produced the result this way:
> >
> > 1. I started the tmux with:
> > tmux -vvvvvvvLtest 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 files I have also send the testfile from tmux
> > (testfile.with.tmux) and a version generated without the "send-keys"
> > command (testfile.without.tmux).
> > On Fri, May 31, 2013 at 1:57 PM, Nicholas Marriott
> > <[1]nicholas.marri...@gmail.com> wrote:
> >
> > Hi
> >
> > Can you run:
> >
> > tmux -vvvvvvvLtest 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 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
> > >
> > > * *When I instead sends the letters to the tmux session by using
> this
> > > * *command:
> > >
> > > * *tmux -u send-keys -t mytest ***
> > >
> > > * *This is the result:
> > >
> > > * *1B C3 1B A6 1B C3 1B B8 1B C3 1B A5
> > >
> > > * *I don*t know why 1B is placed between each 8-bit but it seems
> to be
> > the
> > > * *problem here.
> > >
> > > * *On Wed, Apr 24, 2013 at 1:05 PM, Nicholas Marriott
> > > * *<[1][2]nicholas.marri...@gmail.com> wrote:
> > >
> > > * * *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 by
> > using
> > > * * *the
> > > * * *> * *send-keys command in tmus. My first tests works
> perfectly
> > but I got
> > > * * *> * *problems when trying send some UTF-8 characters. The
> command
> > I am
> > > * * *trying
> > > * * *> * *is:
> > > * * *>
> > > * * *> * *tmux -u send-keys -t mytest "echo test ***" enter
> > > * * *>
> > > * * *> * *My tmux session is startet with this command (both
> contains
> > the *u
> > > * * *option
> > > * * *> * *to activate UTF-8 support):
> > > * * *>
> > > * * *> * *tmux -u new -s mytest -d
> > > * * *>
> > > * * *> * *Im also have this in my .tmux.conf file just to be sure
> tmux
> > > * * *understand I
> > > * * *> * *want UTF-8 support:
> > > * * *>
> > > * * *> * *setw -g utf8 on
> > > * * *> * *set -g status-utf8 on
> > > * * *>
> > > * * *> * *My problem is the revived message is not UTF-8 encoded
> > (looks likes
> > > * * *it is
> > > * * *> * *split in 8-bit chars). Any good tips how I can get this
> > working?
> > > * * *>
> > > * * *> * *P.S. Im running tmux 1.8 on Arch Linux. I have also
> tried
> > the
> > > * * *lasted GIT
> > > * * *> * *version without any luck.
> > > * * *>
> > > * * *> * *Jacob Bang / julemand101
> > >
> > > * * *>
> > > * *
> >
>
> *------------------------------------------------------------------------------
> > > * * *> Try New Relic Now & We'll Send You this Cool Shirt
> > > * * *> New Relic is the only SaaS-based application performance
> > monitoring
> > > * * *service
> > > * * *> that delivers powerful full stack analytics. Optimize and
> > monitor your
> > > * * *> browser, app, & servers with just a few lines of code. Try
> New
> > Relic
> > > * * *> and get this awesome Nerd Life shirt!
> > > * * *[2][3]http://p.sf.net/sfu/newrelic_d2d_apr
> > >
> > > * * *> _______________________________________________
> > > * * *> tmux-users mailing list
> > > * * *> [3][4]tmux-users@lists.sourceforge.net
> > > * * *> [4][5]
> https://lists.sourceforge.net/lists/listinfo/tmux-users
> > >
> > > * *--
> > > * *Jacob Bang / julemand101
> > >
> > > References
> > >
> > > * *Visible links
> > > * *1. mailto:[6]nicholas.marri...@gmail.com
> > > * *2. [7]http://p.sf.net/sfu/newrelic_d2d_apr
> > > * *3. mailto:[8]tmux-users@lists.sourceforge.net
> > > * *4. [9]https://lists.sourceforge.net/lists/listinfo/tmux-users
> >
> > --
> > Jacob Bang / julemand101
> >
> > References
> >
> > Visible links
> > 1. mailto:nicholas.marri...@gmail.com
> > 2. mailto:nicholas.marri...@gmail.com
> > 3. http://p.sf.net/sfu/newrelic_d2d_apr
> > 4. mailto:tmux-users@lists.sourceforge.net
> > 5. https://lists.sourceforge.net/lists/listinfo/tmux-users
> > 6. mailto:nicholas.marri...@gmail.com
> > 7. http://p.sf.net/sfu/newrelic_d2d_apr
> > 8. mailto:tmux-users@lists.sourceforge.net
> > 9. https://lists.sourceforge.net/lists/listinfo/tmux-users
>
>
>
>
>
>
>
--
Jacob Bang / julemand101
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users