Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When we try to get the string from Shift_JIS encoded text we get incorrect value from GetString method
var sjisEnc = Encoding.GetEncoding("Shift_JIS");
byte sjisText1 = Encoding.GetEncoding("Shift_JIS").GetBytes("×");
string text1 = sjisEnc.GetString(sjisText1);
The text value returned as `?` instead of `x`
`x` is not what GetString should be returning. GetString should be returning `×` -- multiplication sign vs the letter `x`.
Note: all of these files are located in `mcs/class/I18N/CJK`.
I followed this bug all the way up to the GetChars method in CP932.cs, where I realized the lookup in the convert.jisx0208ToUnicode table returns a 0. It shouldn't be returning a 0. This table comes from the JISConvert class, which loads the jis.table in the same directory in. There is a comment from lines 36-42 in the CP51932.cs file, stating:
"FIXME: Some characters such as 0xFF0B (wide "plus") are missing in that table".
I also looked at the table as it was printed from one of the tools in the tools subdirectory. Indeed, it was missing an entry for 0x817E.
Fixed in master