You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2011/07/25 21:55:27 UTC

svn commit: r1150867 - /subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c

Author: danielsh
Date: Mon Jul 25 19:55:26 2011
New Revision: 1150867

URL: http://svn.apache.org/viewvc?rev=1150867&view=rev
Log:
* subversion/libsvn_auth_gpg_agent/gpg_agent.c
  (password_get_gpg_agent): Prefer LC_ALL to LC_CTYPE.

Modified:
    subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c

Modified: subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c?rev=1150867&r1=1150866&r2=1150867&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c (original)
+++ subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c Mon Jul 25 19:55:26 2011
@@ -223,12 +223,14 @@ password_get_gpg_agent(const char **pass
       return FALSE;
     }
 
-  /* Send LC_CTYPE to the gpg-agent daemon. */
-  lc_ctype = getenv("LC_CTYPE");
+  /* Compute LC_CTYPE. */
+  lc_ctype = getenv("LC_ALL");
   if (lc_ctype == NULL)
-    lc_ctype = getenv("LC_ALL");
+    lc_ctype = getenv("LC_CTYPE");
   if (lc_ctype == NULL)
     lc_ctype = getenv("LANG");
+
+  /* Send LC_CTYPE to the gpg-agent daemon. */
   if (lc_ctype != NULL)
     {
       if (!send_option(sd, buffer, BUFFER_SIZE, "lc-ctype", lc_ctype, pool))