FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

don't use loadpath to choose output directory for 'save' · gnuplot/gnuplot-old@2091e77 · GitHub

Repository navigation

Commit 2091e77

Browse files
sfeam
committed
don't use loadpath to choose output directory for 'save'
1 parent 421493b commit 2091e77

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎ChangeLog‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017-04-03 Ethan A Merritt <merritt@u.washington.edu>
2+
3+
* src/command.c (save_command): Don't use loadpath to choose an
4+
output directory.
5+
16
2017-04-02 Daniel J Sebald <daniel.sebald@ieee.org>
27

38
* src/eval.c (update_gpval_variables): Sanity check the string

‎NEWS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Changes not in 5.0
5454
* CHANGE raxis/polar grid can coexist with cartesian axes
5555
* CHANGE evaluation of norm(x) or x**y returns 0 on floating underflow
5656
* CHANGE support for space-in-x11-raises-KDE3-konsole is now a configure option
57+
* CHANGE don't use loadpath to choose output directory for "save"
5758
* FIX cairo.trm - reset terminal font after printing an enhanced text string
5859
* FIX autoscaling of data with "smooth cnorm"
5960
* FIX Built-in readline handles S-JIS encoding

‎src/command.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef lint
2-
static char *RCSid() { return RCSid("$Id: command.c,v 1.349 2017-04-02 18:30:44 sfeam Exp $"); }
2+
static char *RCSid() { return RCSid("$Id: command.c,v 1.350 2017-04-04 04:25:31 sfeam Exp $"); }
33
#endif
44

55
/* GNUPLOT - command.c */
@@ -2154,7 +2154,11 @@ save_command()
21542154
#endif
21552155
{
21562156
gp_expand_tilde(&save_file);
2157+
#ifdef _WIN32
21572158
fp = strcmp(save_file,"-") ? loadpath_fopen(save_file,"w") : stdout;
2159+
#else
2160+
fp = strcmp(save_file,"-") ? fopen(save_file,"w") : stdout;
2161+
#endif
21582162
}
21592163

21602164
if (!fp)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL