gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master e49e11b2: Installed scripts: LANG=C internally


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master e49e11b2: Installed scripts: LANG=C internally set in all scripts
Date: Sun, 6 Mar 2022 18:15:18 -0500 (EST)

branch: master
commit e49e11b2df6d9fe0abc9cb11eff8eaa351b8bba8
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Installed scripts: LANG=C internally set in all scripts
    
    Until now, when passing values from command-line tools like AWK or SED, the
    operation would depend on the language of the host operating system. In
    particular, floating point numbers that are printed like '23,45' in some
    languages (as opposed to the expected '23.45').
    
    With this commit, at the very start of all the installed scripts we now
    have an 'export LANG=C' to ensure that problems like above don't happen.
---
 bin/script/ds9-region.in                | 3 +++
 bin/script/fits-view.in                 | 3 +++
 bin/script/psf-create-junction.in       | 3 +++
 bin/script/psf-create-make-stamp.in     | 3 +++
 bin/script/psf-create-select-stars.in   | 3 +++
 bin/script/psf-model-flux-factor.in     | 3 +++
 bin/script/psf-model-scattered-light.in | 3 +++
 bin/script/radial-profile.in            | 3 +++
 bin/script/sort-by-night.in             | 3 +++
 9 files changed, 27 insertions(+)

diff --git a/bin/script/ds9-region.in b/bin/script/ds9-region.in
index efc739da..d3514b50 100644
--- a/bin/script/ds9-region.in
+++ b/bin/script/ds9-region.in
@@ -25,6 +25,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/fits-view.in b/bin/script/fits-view.in
index 63e5df28..4139d91a 100755
--- a/bin/script/fits-view.in
+++ b/bin/script/fits-view.in
@@ -28,6 +28,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/psf-create-junction.in 
b/bin/script/psf-create-junction.in
index a34bbbc3..d050fcaa 100644
--- a/bin/script/psf-create-junction.in
+++ b/bin/script/psf-create-junction.in
@@ -26,6 +26,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/psf-create-make-stamp.in 
b/bin/script/psf-create-make-stamp.in
index a9b5efbf..ef1ed7ca 100644
--- a/bin/script/psf-create-make-stamp.in
+++ b/bin/script/psf-create-make-stamp.in
@@ -34,6 +34,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/psf-create-select-stars.in 
b/bin/script/psf-create-select-stars.in
index 267afb58..35bfab1a 100644
--- a/bin/script/psf-create-select-stars.in
+++ b/bin/script/psf-create-select-stars.in
@@ -35,6 +35,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/psf-model-flux-factor.in 
b/bin/script/psf-model-flux-factor.in
index 8fd9207d..0dfe966e 100644
--- a/bin/script/psf-model-flux-factor.in
+++ b/bin/script/psf-model-flux-factor.in
@@ -26,6 +26,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/psf-model-scattered-light.in 
b/bin/script/psf-model-scattered-light.in
index fff11b0c..31d22beb 100644
--- a/bin/script/psf-model-scattered-light.in
+++ b/bin/script/psf-model-scattered-light.in
@@ -29,6 +29,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/radial-profile.in b/bin/script/radial-profile.in
index 7335c7df..f78f122c 100644
--- a/bin/script/radial-profile.in
+++ b/bin/script/radial-profile.in
@@ -29,6 +29,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 
diff --git a/bin/script/sort-by-night.in b/bin/script/sort-by-night.in
index fada4f9f..5cc75249 100644
--- a/bin/script/sort-by-night.in
+++ b/bin/script/sort-by-night.in
@@ -25,6 +25,9 @@
 # Exit the script in the case of failure
 set -e
 
+# To avoid floating points like '23,45' instead of '23.45'.
+export LANG=C
+
 
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]