After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 497686 - Hangs at startup with "chcp 1252" in DOS window
Hangs at startup with "chcp 1252" in DOS window
Status: VERIFIED NOTGNOME
Product: GnuCash
Classification: Other
Component: Windows
2.2.x
Other Windows
: Normal normal
: ---
Assigned To: Andreas Köhler
Christian Stimming
: 519288 523560 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-11-17 16:26 UTC by Gage
Modified: 2018-06-29 21:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gage 2007-11-17 16:26:09 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.
Comment 1 Andreas Köhler 2007-11-17 21:52:41 UTC
Do you mean that you cannot successfully execute "chcp 1252" on your command line (cmd.exe)?
Comment 2 Gage 2007-11-18 03:48:23 UTC
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.
Comment 3 Rocco Tarasi 2008-01-25 01:28:52 UTC
(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"?
Comment 4 Rocco Tarasi 2008-01-25 12:30:27 UTC
(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.

Comment 5 Andreas Köhler 2008-02-10 00:42:34 UTC
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.
Comment 6 Andreas Köhler 2008-02-28 20:39:38 UTC
*** Bug 519288 has been marked as a duplicate of this bug. ***
Comment 7 Andreas Köhler 2008-03-28 20:46:20 UTC
*** Bug 523560 has been marked as a duplicate of this bug. ***
Comment 8 Julio 2010-02-02 05:57:27 UTC
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.
Comment 9 Geert Janssens 2010-02-11 16:59:24 UTC
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.
Comment 10 John Ralls 2018-06-29 21:54:34 UTC
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.