Re: [PATCH] better UTF-8 support for buffer_sample

2014-03-09 Thread Nicholas Marriott
Actually I think this function is wrong because it reads over the end of src. len is the length of src, not dst. We know there is always enough space in dst. I haven't time now to look at this closely or test it but maybe something like: diff --git a/utf8.c b/utf8.c index 63723d7..b1f44bf 100644

[tmux:tickets] #110 Tmux doesn't support content scroll regions.

2014-03-09 Thread Morgrod
--- ** [tickets:#110] Tmux doesn't support content scroll regions.** **Status:** open **Created:** Sat Mar 08, 2014 10:07 PM UTC by Morgrod **Last Updated:** Sat Mar 08, 2014 10:07 PM UTC **Owner:** nobody Content Scroll Regions are a standard feature in vt100/vt200 terminals, but tmux

Re: [PATCH] better UTF-8 support for buffer_sample

2014-03-09 Thread Kosuke ASAMI
The first zero check of 'len' seem to be unnecessary. I have fixed the decrement number from 'src' when an UTF-8 character doesn't finish. 2014-03-09 18:16 GMT+09:00 Nicholas Marriott nicholas.marri...@gmail.com: Actually I think this function is wrong because it reads over the end of src. len

Re: [PATCH] better UTF-8 support for buffer_sample

2014-03-09 Thread Nicholas Marriott
On Mon, Mar 10, 2014 at 12:47:46AM +0900, Kosuke ASAMI wrote: The first zero check of 'len' seem to be unnecessary. Yes you are right, thanks. Will look at this again and apply it later this week. I have fixed the decrement number from 'src' when an UTF-8 character doesn't finish.

Re: tmux leaking socket descriptors under certain circumstances

2014-03-09 Thread Jan Larres
On 08/03/14 12:44, Balazs Kezes wrote: On 2014-03-07 19:52, Jan Larres wrote: Are you seeing the sleep jobs in the 'Jobs:' output of 'tmux info'? Ah, yes, I do see them in my case. Then I would guess that either this is not actually the cause or somehow the descriptors do not get properly