Bug 13836: Does not separate symbol and value if symbol is not displayed.

This patch force the separation between the symbol and the value to an
empty string if the symbol is not displayed.

Tested with locale de_CH.UTF-8, prove t/Prices.t is now successful.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2015-03-16 15:24:02 +01:00 committed by Tomas Cohen Arazi
parent 17a886aed2
commit 15468615f9

View file

@ -106,7 +106,7 @@ sub _format_params {
} }
$format_params{p_cs_precedes} = $p_cs_precedes if defined $p_cs_precedes; $format_params{p_cs_precedes} = $p_cs_precedes if defined $p_cs_precedes;
$format_params{p_sep_by_space} = $p_sep_by_space if defined $p_sep_by_space; $format_params{p_sep_by_space} = ( $int_curr_symbol and defined $p_sep_by_space ) ? $p_sep_by_space : 0;
return \%format_params; return \%format_params;
} }