Skip to content

Commit

Permalink
Merge pull request #42 from eiennohito/unicode-tostring
Browse files Browse the repository at this point in the history
make generated toString use printToUnicodeString
  • Loading branch information
thesamet committed Sep 11, 2015
2 parents 67f0e92 + 2682422 commit 1eeb3d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ class ProtobufGenerator(val params: GeneratorParams) extends DescriptorPimps {
}
.call(generateGetField(message))
.when(message.javaConversions)(
_.add(s"override def toString: String = com.google.protobuf.TextFormat.printToString(${message.scalaTypeName}.toJavaProto(this))"))
_.add(s"override def toString: String = com.google.protobuf.TextFormat.printToUnicodeString(${message.scalaTypeName}.toJavaProto(this))"))
.add(s"def companion = ${message.scalaTypeName}")
.outdent
.outdent
Expand Down

0 comments on commit 1eeb3d9

Please sign in to comment.