[php-src] Issue #13787: NumberFormatter class – USD text abbreviation displayed instead of currency symbol for locale Bulgaria (bg_BG)
| From: | dalai-lamia | Date: | Fri, 22 Mar 2024 14:37:51 +0000 |
| Subject: | [php-src] Issue #13787: NumberFormatter class – USD text abbreviation displayed instead of currency symbol for locale Bulgaria (bg_BG) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246637@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13787
Author: dalai-lamia
### Description
The following code:
```php
<?php
```$curr = new NumberFormatter('bg_BG', NumberFormatter::CURRENCY);
```$amount = '100';
```$currency = 'USD';
```echo $curr->formatCurrency($amount, $currency);
Resulted in this output:
```100 щ.д.
```
But I expected this output instead:
```100 $
```
The textual abbreviation щ.д. for USD was the standard in Bulgaria until the late 1990s but not
any longer. PHP's NumberFormatter::CURRENCY should display the symbol instead of the
abbreviation.
### PHP Version
PHP 8.3.3
### Operating System
Windows 11 x64