Skip to contentSkip to conversation

mount.nfs: Fix one more double-wide character nit

PATCH In review Chuck Lever 2 participants 2 messages Aug 9, 2007 – Aug 10, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 mount.nfs: Fix one more double-wide character nit

---

 utils/mount/network.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/mount/network.c +1 -1
index 5a56c23..eb59c1f 100644
@@ -388,7 +388,7 @@ static int probe_port(clnt_addr_t *server, const unsigned long *versions,
 						inet_ntoa(saddr->sin_addr),
 						prog, *p_vers,
 						*p_prot == IPPROTO_UDP ?
-							"udp" : "tcp",
+							_("UDP") : _("TCP"),
 						p_port);
                                 }
 				if (clnt_ping(saddr, prog, *p_vers, *p_prot, NULL))

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

It bothers me that you still seem to think the _() stuff is closely
connected with double/wide characters. That is not what it is really
about.
There are quite possible no wide characters involved at all (depending on the local language).

The question is: Does this string need to be translated. In that case of the strings "UDP" and "TCP", I suspect the answer is "no". However as I don't speak any other language, maybe I am wrong.

I'll happily accept a patch which simply changes "udp" to "UDP" as I agree that is a correct change to make.
And I will also accept a patch that changes "udp" to _("UDP") if the subject says "Allow protocol names to be translated" or something else that mentions translation or localisation or different languages.

But - despite the fact that it probably seems like I'm being unnecessarily picky - I don't want to accept this patch with this subject.

Sorry :-)

NeilBrown

Quoted 11 lines · On Thursday August 9, [email protected] wrote:

---

 utils/mount/network.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/mount/network.c +0 -0
index 5a56c23..eb59c1f 100644

utils/mount/network.c static int probe_port(clnt_addr_t *server, const unsigned long *versions, · line 394

Quoted 8 lines
utils/mount/network.c +1 -1
@@ -388,7 +388,7 @@ static int probe_port(clnt_addr_t *server, const unsigned long *versions,
 						inet_ntoa(saddr->sin_addr),
 						prog, *p_vers,
 						*p_prot == IPPROTO_UDP ?
-							"udp" : "tcp",
+							_("UDP") : _("TCP"),
 						p_port);
                                 }
 				if (clnt_ping(saddr, prog, *p_vers, *p_prot, NULL))

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs