This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201225

Summary: mercurial tries to decode commit message as ascii
Product: versioncontrol Reporter: deadpixel89
Component: MercurialAssignee: Tomas Stupka <tstupka>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 7.0.1   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description deadpixel89 2011-08-22 17:00:04 UTC
Hello,

my Netbeans Mercurial seems to try to decode my commit message as ascii which fails when using special characters like äöü etc.

The output in the mercurial output window is as follows:
Command: [hg, commit, --repository, /Applications/XAMPP/htdocs/PePa, --cwd, /Applications/XAMPP/htdocs/PePa, --user, webdev@Deadpixels-MacBook.local, --logfile, /var/folders/DM/DMFrQOA5FyO+G5kLuy0AzE+++TQ/-Tmp-/hgcommit6468303120798800182.hgm, js/jquery.tooltip.js, css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png, css/ui-darkness/images/ui-icons_222222_256x240.png, .hgignore, css/ui-darkness/images/ui-bg_glass_20_555555_1x400.png, js/lib/jquery.js, js/jquery-tooltip/demo/bg.gif, js/jquery-tooltip/jquery.tooltip.css, css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png, css/ui-darkness/images/ui-bg_flat_50_5c5c5c_40x100.png, css/ui-darkness/images/ui-icons_4b8e0b_256x240.png, css/ui-lightness/images/ui-icons_228ef1_256x240.png........]

Output: [transaction abort!, rollback completed, abort: decoding near '.2011 Aufräumaktion ': 'ascii' codec can't decode byte 0x8a in position 29: ordinal not in range(128)!]
Comment 1 Ondrej Vrabec 2011-08-22 19:07:18 UTC
Probably a duplicate of bug #198439. If the IDE runs with a different locale than should be used in mercurial, please run the IDE with the following switch:
-J-Dmercurial.encoding=utf-8
If this does not help, attach the full message.log
Comment 2 deadpixel89 2011-08-23 07:08:54 UTC
This works well. Thank you very much.
But why does NetBeans start with a different locale?
My $LANG says de_DE.UTF-8 - shouldn't this be used by NetBeans?
Is there a way to make NetBeans automatically use the right locale, so i just need to klick the icon? (i don't like closing the terminal app and seeing netbeans is closing with it ;) )
Comment 3 Ondrej Vrabec 2011-08-23 07:15:36 UTC
I don't know, i don't use MAC. I just know from previous reports that although you normally have a certain locale configured in shell, NetBeans started from Desktop may occasionally run with a different one.
Comment 4 deadpixel89 2011-08-23 07:28:31 UTC
okay thank you anyway :) hopefully it will be fixed or workarounded in future versions ;)