Specify UTF-8 encoding for all Java agent commands
[lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-common / org / lttng / ust / agent / client / SessiondEnableEventCommand.java
index 5b36ac5d10a006c0e2ed1365a83b628f7dd631fe..54fcb4c0042821a21f50a08564971f2b57ff8881 100644 (file)
@@ -56,7 +56,7 @@ class SessiondEnableEventCommand extends SessiondCommand {
                /* Read the event name */
                byte[] eventNameBytes = new byte[EVENT_NAME_LENGTH];
                buf.get(eventNameBytes);
-               eventName = new String(eventNameBytes).trim();
+               eventName = new String(eventNameBytes, SESSIOND_PROTOCOL_CHARSET).trim();
 
                /* Read the filter string */
                filterString = readNextString(buf);
This page took 0.023026 seconds and 4 git commands to generate.