]> www.ginac.de Git - ginac.git/blobdiff - tools/viewgar.cpp
[bugfix] integer_cra: check if arguments contain at least 2 moduli
[ginac.git] / tools / viewgar.cpp
index 93ca604903a7d200eba156708bffe559200051f2..c2d484ca9daf32ad3c9528ccf46fb51bf438a57f 100644 (file)
@@ -3,7 +3,7 @@
  *  GiNaC archive file viewer. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
                                dump_mode = true;
                                --argc; ++argv;
                        }
-                       std::ifstream f(*argv);
+                       std::ifstream f(*argv, std::ios_base::binary);
                        archive ar;
                        f >> ar;
                        if (dump_mode) {