[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH, svnmerge] Try "stty -a" to find out console width

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-01-08 01:45:30 CET

Kalle wrote:

> As GNU coreutils 5.93 documents that stty -a prints "all current
> settings in human-readable form", I wonder whether some
> implementation could make the word "columns" depend on the
> locale. The specification of "stty" in IEEE Std 1003.1, 2004
> Edition does not say anything about setting or retrieving the
> size of the console, but it requires at least the "speed",
> "ispeed", and "ospeed" words in "stty -a" output to be unaffected
> by locale; perhaps this is why GNU coreutils 5.93 leaves
> "columns" untranslated.

svnmerge already sets LC_MESSAGES=C to be able to consistently parse the output
of svn's command line client. I reckon this should also fix these issues with
translation, right?

> GNU coreutils also supports "stty size", which outputs only
> the rows and columns and may thus be more reliable to parse.
> However, I don't know how widely that's supported elsewhere.

Ah nice to know! But I'd rather stay with a more portable form (for some
meaning of "portable"). BTW, what about "stty -g"? Is its output portable?

Giovanni Bajo

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 8 01:46:11 2006

This is an archived mail posted to the Subversion Dev mailing list.