Fix an encoding bug. Testcase in the next commit.
Fix an encoding bug.
Testcase in the next commit.



Swift SVN r21087

KrishMunot/swift,swiftix/swift,arvedviehweger/swift,IngmarStein/swift,IngmarStein/swift,kusl/swift,JGiola/swift,aschwaighofer/swift,JaSpa/swift,uasys/swift,johnno1962d/swift,swiftix/swift.old,aschwaighofer/swift,airspeedswift/swift,uasys/swift,gmilos/swift,mightydeveloper/swift,LeoShimonaka/swift,tinysun212/swift-windows,Jnosh/swift,devincoughlin/swift,LeoShimonaka/swift,xwu/swift,allevato/swift,JGiola/swift,brentdax/swift,benlangmuir/swift,dduan/swift,tardieu/swift,ken0nek/swift,CodaFi/swift,calebd/swift,gregomni/swift,IngmarStein/swift,mightydeveloper/swift,adrfer/swift,CodaFi/swift,khizkhiz/swift,ken0nek/swift,austinzheng/swift,russbishop/swift,adrfer/swift,alblue/swift,gottesmm/swift,therealbnut/swift,manavgabhawala/swift,sschiau/swift,sschiau/swift,ahoppen/swift,kperryua/swift,hughbe/swift,hooman/swift,IngmarStein/swift,IngmarStein/swift,tinysun212/swift-windows,jtbandes/swift,IngmarStein/swift,felix91gr/swift,benlangmuir/swift,kperryua/swift,johnno1962d/swift,deyton/swift,mightydeveloper/swift,codestergit/swift,kperryua/swift,hughbe/swift,JGiola/swift,tinysun212/swift-windows,sschiau/swift,return/swift,shajrawi/swift,tjw/swift,amraboelela/swift,jtbandes/swift,lorentey/swift,parkera/swift,SwiftAndroid/swift,tardieu/swift,apple/swift,tjw/swift,apple/swift,hooman/swift,jckarter/swift,MukeshKumarS/Swift,shahmishal/swift,shahmishal/swift,tkremenek/swift,jtbandes/swift,tjw/swift,khizkhiz/swift,huonw/swift,cbrentharris/swift,hughbe/swift,ken0nek/swift,swiftix/swift.old,apple/swift,jopamer/swift,JaSpa/swift,shahmishal/swift,hooman/swift,airspeedswift/swift,practicalswift/swift,cbrentharris/swift,harlanhaskins/swift,swiftix/swift.old,JaSpa/swift,SwiftAndroid/swift,bitjammer/swift,emilstahl/swift,arvedviehweger/swift,nathawes/swift,sschiau/swift,karwa/swift,sdulal/swift,glessard/swift,bitjammer/swift,tkremenek/swift,modocache/swift,MukeshKumarS/Swift,hooman/swift,ben-ng/swift,hooman/swift,emilstahl/swift,bitjammer/swift,allevato/swift,swiftix/swift,danielmartin/swift,frootloops/swift,djwbrown/swift,glessard/swift,CodaFi/swift,frootloops/swift,codestergit/swift,SwiftAndroid/swift,dduan/swift,calebd/swift,dduan/swift,ben-ng/swift,Ivacker/swift,modocache/swift,benlangmuir/swift,jckarter/swift,SwiftAndroid/swift,sdulal/swift,cbrentharris/swift,gottesmm/swift,tkremenek/swift,kstaring/swift,swiftix/swift,gmilos/swift,modocache/swift,xedin/swift,emilstahl/swift,practicalswift/swift,khizkhiz/swift,slavapestov/swift,stephentyrone/swift,codestergit/swift,KrishMunot/swift,JaSpa/swift,modocache/swift,amraboelela/swift,ken0nek/swift,lorentey/swift,gribozavr/swift,xwu/swift,parkera/swift,atrick/swift,sdulal/swift,slavapestov/swift,CodaFi/swift,jmgc/swift,therealbnut/swift,dduan/swift,aschwaighofer/swift,alblue/swift,russbishop/swift,tardieu/swift,Ivacker/swift,shahmishal/swift,nathawes/swift,glessard/swift,Jnosh/swift,milseman/swift,kentya6/swift,karwa/swift,stephentyrone/swift,alblue/swift,felix91gr/swift,hooman/swift,benlangmuir/swift,zisko/swift,allevato/swift,huonw/swift,uasys/swift,natecook1000/swift,gribozavr/swift,shajrawi/swift,zisko/swift,roambotics/swift,aschwaighofer/swift,khizkhiz/swift,danielmartin/swift,xwu/swift,LeoShimonaka/swift,jopamer/swift,alblue/swift,xwu/swift,brentdax/swift,gottesmm/swift,tinysun212/swift-windows,airspeedswift/swift,jckarter/swift,shajrawi/swift,karwa/swift,ben-ng/swift,frootloops/swift,therealbnut/swift,harlanhaskins/swift,LeoShimonaka/swift,sschiau/swift,russbishop/swift,glessard/swift,ken0nek/swift,nathawes/swift,amraboelela/swift,codestergit/swift,swiftix/swift.old,adrfer/swift,sdulal/swift,manavgabhawala/swift,uasys/swift,therealbnut/swift,natecook1000/swift,kstaring/swift,LeoShimonaka/swift,milseman/swift,johnno1962d/swift,huonw/swift,parkera/swift,arvedviehweger/swift,deyton/swift,devincoughlin/swift,frootloops/swift,jckarter/swift,shajrawi/swift,gregomni/swift,jmgc/swift,kperryua/swift,shahmishal/swift,brentdax/swift,CodaFi/swift,gribozavr/swift,modocache/swift,alblue/swift,hughbe/swift,brentdax/swift,CodaFi/swift,xedin/swift,kentya6/swift,atrick/swift,gmilos/swift,austinzheng/swift,SwiftAndroid/swift,arvedviehweger/swift,parkera/swift,gregomni/swift,devincoughlin/swift,roambotics/swift,johnno1962d/swift,natecook1000/swift,gregomni/swift,tardieu/swift,emilstahl/swift,therealbnut/swift,hughbe/swift,kusl/swift,JGiola/swift,tardieu/swift,milseman/swift,karwa/swift,uasys/swift,airspeedswift/swift,gmilos/swift,Ivacker/swift,codestergit/swift,atrick/swift,tinysun212/swift-windows,manavgabhawala/swift,xedin/swift,atrick/swift,bitjammer/swift,shajrawi/swift,jtbandes/swift,khizkhiz/swift,sschiau/swift,karwa/swift,parkera/swift,johnno1962d/swift,airspeedswift/swift,xedin/swift,shajrawi/swift,manavgabhawala/swift,devincoughlin/swift,russbishop/swift,devincoughlin/swift,uasys/swift,gribozavr/swift,dreamsxin/swift,shahmishal/swift,aschwaighofer/swift,shahmishal/swift,tjw/swift,alblue/swift,jmgc/swift,MukeshKumarS/Swift,manavgabhawala/swift,stephentyrone/swift,austinzheng/swift,sschiau/swift,harlanhaskins/swift,djwbrown/swift,apple/swift,stephentyrone/swift,shahmishal/swift,jopamer/swift,devincoughlin/swift,manavgabhawala/swift,nathawes/swift,xedin/swift,djwbrown/swift,ahoppen/swift,dduan/swift,jopamer/swift,kentya6/swift,gribozavr/swift,hughbe/swift,rudkx/swift,arvedviehweger/swift,bitjammer/swift,JGiola/swift,allevato/swift,huonw/swift,alblue/swift,mightydeveloper/swift,devincoughlin/swift,return/swift,JGiola/swift,Ivacker/swift,xedin/swift,gregomni/swift,calebd/swift,jtbandes/swift,natecook1000/swift,swiftix/swift,jckarter/swift,practicalswift/swift,OscarSwanros/swift,harlanhaskins/swift,return/swift,khizkhiz/swift,xwu/swift,amraboelela/swift,natecook1000/swift,danielmartin/swift,kperryua/swift,ben-ng/swift,swiftix/swift.old,emilstahl/swift,KrishMunot/swift,ahoppen/swift,huonw/swift,return/swift,calebd/swift,swiftix/swift,kusl/swift,ken0nek/swift,brentdax/swift,sdulal/swift,roambotics/swift,MukeshKumarS/Swift,gribozavr/swift,LeoShimonaka/swift,gottesmm/swift,practicalswift/swift,emilstahl/swift,rudkx/swift,kentya6/swift,kusl/swift,nathawes/swift,parkera/swift,tjw/swift,devincoughlin/swift,lorentey/swift,jckarter/swift,ben-ng/swift,apple/swift,cbrentharris/swift,manavgabhawala/swift,djwbrown/swift,huonw/swift,milseman/swift,MukeshKumarS/Swift,felix91gr/swift,deyton/swift,glessard/swift,OscarSwanros/swift,rudkx/swift,gottesmm/swift,parkera/swift,danielmartin/swift,atrick/swift,adrfer/swift,MukeshKumarS/Swift,roambotics/swift,codestergit/swift,kperryua/swift,xedin/swift,austinzheng/swift,dreamsxin/swift,lorentey/swift,SwiftAndroid/swift,zisko/swift,kstaring/swift,lorentey/swift,mightydeveloper/swift,gottesmm/swift,modocache/swift,ben-ng/swift,kperryua/swift,hughbe/swift,bitjammer/swift,jmgc/swift,tinysun212/swift-windows,xwu/swift,OscarSwanros/swift,apple/swift,kusl/swift,benlangmuir/swift,slavapestov/swift,danielmartin/swift,felix91gr/swift,return/swift,kentya6/swift,jopamer/swift,shajrawi/swift,gmilos/swift,adrfer/swift,Ivacker/swift,harlanhaskins/swift,gmilos/swift,tjw/swift,allevato/swift,deyton/swift,frootloops/swift,mightydeveloper/swift,natecook1000/swift,JaSpa/swift,gribozavr/swift,dduan/swift,brentdax/swift,calebd/swift,felix91gr/swift,karwa/swift,danielmartin/swift,Jnosh/swift,deyton/swift,modocache/swift,stephentyrone/swift,slavapestov/swift,slavapestov/swift,practicalswift/swift,swiftix/swift.old,djwbrown/swift,frootloops/swift,cbrentharris/swift,practicalswift/swift,gottesmm/swift,sdulal/swift,johnno1962d/swift,adrfer/swift,swiftix/swift,parkera/swift,zisko/swift,kusl/swift,johnno1962d/swift,brentdax/swift,LeoShimonaka/swift,OscarSwanros/swift,tardieu/swift,slavapestov/swift,therealbnut/swift,JaSpa/swift,codestergit/swift,rudkx/swift,roambotics/swift,return/swift,return/swift,jmgc/swift,mightydeveloper/swift,aschwaighofer/swift,xwu/swift,OscarSwanros/swift,KrishMunot/swift,harlanhaskins/swift,roambotics/swift,swiftix/swift,rudkx/swift,MukeshKumarS/Swift,jopamer/swift,karwa/swift,cbrentharris/swift,OscarSwanros/swift,ahoppen/swift,shajrawi/swift,lorentey/swift,bitjammer/swift,SwiftAndroid/swift,jtbandes/swift,sdulal/swift,lorentey/swift,dduan/swift,stephentyrone/swift,deyton/swift,cbrentharris/swift,ben-ng/swift,LeoShimonaka/swift,Jnosh/swift,emilstahl/swift,ahoppen/swift,jmgc/swift,zisko/swift,austinzheng/swift,airspeedswift/swift,atrick/swift,allevato/swift,tardieu/swift,KrishMunot/swift,jmgc/swift,adrfer/swift,practicalswift/swift,glessard/swift,therealbnut/swift,kstaring/swift,nathawes/swift,kentya6/swift,amraboelela/swift,Ivacker/swift,amraboelela/swift,kentya6/swift,IngmarStein/swift,russbishop/swift,lorentey/swift,slavapestov/swift,aschwaighofer/swift,frootloops/swift,tinysun212/swift-windows,Ivacker/swift,sdulal/swift,russbishop/swift,calebd/swift,kusl/swift,cbrentharris/swift,tkremenek/swift,JaSpa/swift,deyton/swift,felix91gr/swift,tjw/swift,allevato/swift,KrishMunot/swift,austinzheng/swift,rudkx/swift,austinzheng/swift,djwbrown/swift,amraboelela/swift,tkremenek/swift,arvedviehweger/swift,gribozavr/swift,ken0nek/swift,gregomni/swift,felix91gr/swift,CodaFi/swift,kstaring/swift,swiftix/swift.old,Jnosh/swift,milseman/swift,Jnosh/swift,khizkhiz/swift,gmilos/swift,nathawes/swift,KrishMunot/swift,kstaring/swift,xedin/swift,benlangmuir/swift,harlanhaskins/swift,zisko/swift,practicalswift/swift,zisko/swift,tkremenek/swift,airspeedswift/swift,calebd/swift,hooman/swift,emilstahl/swift,jckarter/swift,natecook1000/swift,jopamer/swift,swiftix/swift.old,kstaring/swift,tkremenek/swift,mightydeveloper/swift,stephentyrone/swift,kentya6/swift,Jnosh/swift,milseman/swift,djwbrown/swift,russbishop/swift,sschiau/swift,danielmartin/swift,Ivacker/swift,kusl/swift,jtbandes/swift,OscarSwanros/swift,karwa/swift,uasys/swift,ahoppen/swift,huonw/swift,milseman/swift,arvedviehweger/swift