evgenekov / protobuf-csharp-port

Automatically exported from code.google.com/p/protobuf-csharp-port
Other
0 stars 0 forks source link

ByteString.FromBase64 throws with empty strings on the compact framework #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a program containing the following line: 
Google.ProtocolBuffers.ByteString.FromBase64("");
2. Run it in an emulator using the compact framework.

What is the expected output? What do you see instead?
ByteString.FromBase64("") should return ByteString.Empty. It throws a 
FormatException instead because of the buggy System.Convert.FromBase64String 
implementation in .NETCF 2.0. This causes some JSON deserializations to fail.

What version of the product are you using? On what operating system?
.NETCF 2.0.7045.0 on Pocket PC 2003 and Windows Mobile 6.5.

Please provide any additional information below.

Original issue reported on code.google.com by librema...@gmail.com on 30 Jul 2013 at 7:35

GoogleCodeExporter commented 9 years ago
Fixed in changeset 67a34e2b681e

Original comment by Grig...@gmail.com on 21 Sep 2013 at 5:40