From 6f31c832ed660a06dc1374dd0618d2bcd8d35104 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 28 Sep 2013 08:12:53 +0200 Subject: [PATCH] Documentation: Explain locale issues in the tutorial. Mention that explicitly setting the input format is necessary if the user wishes to ignore the system's LC_NUMERIC setting. Otherwise, following the tutorial strictly to the letter will result in confusing for users whose locale uses a comma as the decimal separator. --- doc/tutorial.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/tutorial.texi b/doc/tutorial.texi index 1fabdea928..ade65acedc 100644 --- a/doc/tutorial.texi +++ b/doc/tutorial.texi @@ -144,6 +144,16 @@ and @samp{(A12)} says that the variable @var{forename} is a string variable and that its maximum length is 12 bytes. The second variable's name is specified by the text @samp{height}. Since no format is given, this variable has the default format. +Normally the default format expects numeric data, which should be +entered in the locale of the operating system. +Thus, the example is correct for English locales and other +locales which use a period (@samp{.}) as the decimal separator. +However if you are using a system with a locale which uses the comma (@samp{,}) +as the decimal separator, then you should in the subsequent lines substitute +@samp{.} with @samp{,}. +Alternatively, you could explicitly tell @pspp{} that the @var{height} +variable is to be read using a period as its decimal separator by appending the +text @samp{DOT8.3} after the word @samp{height}. For more information on data formats, @pxref{Input and Output Formats}. -- 2.30.2