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 / SessiondListLoggersCommand.java
index c1bdaf407007ccf686c5a060ee1e510b0bf5dd49..1c7ef9b400f019e7611c36b5bb349c99cc628b5d 100644 (file)
@@ -73,7 +73,7 @@ class SessiondListLoggersCommand extends SessiondCommand {
                        buf.putInt(loggers.size());
 
                        for (String logger : loggers) {
-                               buf.put(logger.getBytes());
+                               buf.put(logger.getBytes(SESSIOND_PROTOCOL_CHARSET));
                                /* NULL terminated byte after the logger name. */
                                buf.put((byte) 0x0);
                        }
This page took 0.030369 seconds and 4 git commands to generate.