GNOME Bugzilla – Bug 497686
Hangs at startup with "chcp 1252" in DOS window
Last modified: 2018-06-29 21:54:34 UTC
Will not continue past this DOS screen. Using Windows XP SP2. Program worked several times before. Tried closing and reopening and rebooting. Same result.
Do you mean that you cannot successfully execute "chcp 1252" on your command line (cmd.exe)?
Correct. chcp 1252 freezes the command line. I removed that command from the batch file to run Gnucash and it ran fine. Not sure if it's crucial to the program.
(In reply to comment #2) > Correct. chcp 1252 freezes the command line. I removed that command from the > batch file to run Gnucash and it ran fine. Not sure if it's crucial to the > program. I have the same problem. I am an end-user (who as an accountant loves this product), not a developer... can you provide instructions on how to "remove this from the bacth file"?
(In reply to comment #3) > (In reply to comment #2) > > Correct. chcp 1252 freezes the command line. I removed that command from the > > batch file to run Gnucash and it ran fine. Not sure if it's crucial to the > > program. > An update to my previous post. I have had the same problem. Sometimes the program will open and other times it will stop at the command prompt "chcp 1252", requiring me to click to launch several more times before it will finally open. Yesterday i tried about 20 times and could not get past the command line freeze. Based on your advice I also removed that first command from the batch file and it now opens every time. If it will help to determine the cause of the bug, I am running Vista, Gnucash v2.2.2, built from r16676 on 12-17-07.
It is a pity but I do not know how to fix this within GnuCash. The command does not hang for me and I have no clue how to magically detect that it will hang :-) On the other hand, for non-ascii (accents, umlauts, stuff like that) characters to work in installation paths, we need some code page change. We may not have specified the correct ones for your setups, but currently we only guess based on the choice of language when starting the setup.exe. So feel free to provide a new translation of the installer and the according code page number 8-) IMHO, the hanging is a bug for Microsoft nonetheless.
*** Bug 519288 has been marked as a duplicate of this bug. ***
*** Bug 523560 has been marked as a duplicate of this bug. ***
I also have this problem in Windows Vista after installing gnucash 2.2.9. I get the following message: C:\Program Files\gnucash\bin>setlocal C:\Program Files\gnucash\bin>chcp 1252 ... and then nothing else happens. I unistalled everything and tried downloading gnucash 2.2.8 and the samething happened all over again. ... Finally, I decided to download the oldest version around, gnucash 2.2.0, and got it up and running. So far (15 minutes) it hasn't crashed like the others. So, if you don't here back from me it's because I didn't have further problems with this version. Anyways, it would be nice to have the latest versions without that bug. Thanks. J.B.A.
What happens if you open a command line and run "chcp" ? Does that work, and what does it return ? The chcp invocation was added in GnuCash version 2.2.1. That explains why you can still use 2.2.0 without modification. It's easy though to remove this invocation from a more recent version of GnuCash. Here's what you can do: 1. Download and install GnuCash 2.2.9. 2. Before running GnuCash for the first time, edit gnucash.cmd. This file should be installed in c:\\Program Files\gnucash\bin 3. Remove the line with chcp in it. 4. Save the file 5. Run GnuCash As a sidenote, I found this Microsoft Knowledge base article that seems to indicate this is indeed a Windows problem: http://support.microsoft.com/kb/925271/ So I would suggest to first try and update your Windows installation. If that doesn't work, the above can serve as a workaround.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=497686. Please update any external references or bookmarks.