zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#419233: zsh: error messages start with lowercase letters
       [not found] <20070414140521.GA6436@debian.homenet>
@ 2007-04-14 14:39 ` Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-04-14 14:39 UTC (permalink / raw)
  To: zsh-workers; +Cc: Michael Schutte, 419233-forwarded

On Sat, Apr 14, 2007 at 04:05:21PM +0200, Michael Schutte wrote:
> $ cd 404
> cd: datei oder Verzeichnis nicht gefunden: 404
> 
> zsh puts the first character of an error message into lowercase.  While
> one may find that this looks better in English, it is clearly wrong in
> German where nouns are always capitalized.  A patch is attached.

Anyone have a clever idea on how to retain the historical behavior in
English-speaking locales?

> diff -ur zsh-4.3.2.orig/Src/utils.c zsh-4.3.2/Src/utils.c
> --- zsh-4.3.2.orig/Src/utils.c	2007-04-14 15:38:58.000000000 +0200
> +++ zsh-4.3.2/Src/utils.c	2007-04-14 15:39:57.000000000 +0200
> @@ -171,15 +171,7 @@
>  		    errflag = 1;
>  		    return;
>  		}
> -		/* If the message is not about I/O problems, it looks better *
> -		 * if we uncapitalize the first letter of the message        */
> -		if (num == EIO)
> -		    fputs(strerror(num), stderr);
> -		else {
> -		    char *errmsg = strerror(num);
> -		    fputc(tulower(errmsg[0]), stderr);
> -		    fputs(errmsg + 1, stderr);
> -		}
> +		fputs(strerror(num), stderr);
>  		break;
>  	    }
>  	} else {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-14 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20070414140521.GA6436@debian.homenet>
2007-04-14 14:39 ` Bug#419233: zsh: error messages start with lowercase letters Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).