Skip to content

Commit

Permalink
Localization doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmitev committed Aug 29, 2023
1 parent 02d8100 commit 53ac6e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Other/Localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ Well, here are some annoying problems related to some local settings, for exampl

US localization with decimal point
``` awk
$ echo 123.2 | gawk '{print; print $1+1}
$ echo 123.2 | gawk '{print; print $1+1}'
124.2
```

SE localization with decimal comma
``` awk
$ echo 123,2 | gawk '{print; print $1+1}
$ echo 123,2 | gawk '{print; print $1+1}'
124
```


SE localization with decimal comma - FIX
``` awk
$ echo 123,2 | LC_NUMERIC=se_SE.utf-8 gawk --use-lc-numeric '{printf $1+1}
$ echo 123,2 | LC_NUMERIC=se_SE.utf-8 gawk --use-lc-numeric '{printf $1+1}'
124,2
```

0 comments on commit 53ac6e0

Please sign in to comment.