From mboxrd@z Thu Jan 1 00:00:00 1970 From: rudolf.sykora@gmail.com (Rudolf Sykora) Date: Tue, 29 Mar 2011 19:28:36 +0200 Subject: [9fans] diff problem In-Reply-To: <3718da369f132a3a0c357b336e012eb1@coraid.com> References: <3718da369f132a3a0c357b336e012eb1@coraid.com> Message-ID: Topicbox-Message-UUID: c34328ba-ead6-11e9-9d60-3106f5b1d025 On 29 March 2011 18:45, erik quanstrom wrote: > your problem is that you have a line that exceeds diff's line-length limits > of 4096 characters: > > 6: ?!cat /mail/fs/mbox/323/3/body.txt|awk 'length($0)>4096 {print NR " " length($0)}' > 33 4122 > > - erik aha. thanks! But how is it? Does the linux's diff also have some limit, only higher, or can it adapt to any line lenght? Also, having bumped into problem like this, I guess I have to recompile. But how can I know which parameters to change? Quickly going through the (now plan9; not p9p) source I see several numbers scattered in the files: #define BUF 4096 in diffreg.c #define MAXPATHLEN 1024 in diff.h #define MAXLINELEN 4096 in diffio.c #define HALFLONG 16 So I guess I must change BUF and MAXLINELEN. But shouldn't these defines be ideally at one place?; also they have no comments... :( Wouldn't it be nice to have the limits mentioned (automatically, say during compilation process) in the man page? Or, would it be difficult to get rid of any such limits? Thanks Ruda