[drbd-mc] Japanese messages are garbled in a terminal panel

Takashi Takizawa taki at 3ware.co.jp
Thu Feb 10 13:16:37 CET 2011


On Tue, Feb 08, 2011 at 11:19:12AM +0100,
 Rasto Levrinc wrote:

> Well, drbd-gui-helper set locale to C for whatever happens in this script.
> Other commands defined in configs/DistResource... files use whatever is
> set on the servers. That can cause problems sometimes, if there is some
> parsing involved, although till now nobody reported something like that. I
> think I set it for every such command to never run into a problem.

An error sometimes occurs in the latest source code.
The following command causes an error.
    LC_ALL=C if ! /etc/init.d/heartbeat status >/dev/null 2>&1; then /etc/init.d/heartbeat start; fi

I think that I had better transfer 'LC_ALL=C' to 'export LC_ALL=C;'. 
However, I cannot try the case that ssh is hopped.

diff --git a/src/drbd/data/Host.java b/src/drbd/data/Host.java
index 0fb0fdb..1108f18 100644
--- a/src/drbd/data/Host.java
+++ b/src/drbd/data/Host.java
@@ -1483,7 +1483,7 @@ public class Host implements Serializable {
         final String[] usernames = username.split(",");
         final String[] ips = ip.split(",");
         final StringBuffer s = new StringBuffer(200);
-        s.append("LC_ALL=C ");
+        s.append("export LC_ALL=C;");
         if (hops > 1) {
             String sshAgentPid = "";
             String sshAgentSock = "";

Takashi Takizawa
ThirdWare Co., Ltd.

More information about the drbd-mc mailing list