Skip to content

Regression in phpspreadsheet 1.28.0 in comparison to 1.24.1: Euro currency format doesn't work right anymore #3577

Closed
@finn-matti

Description

@finn-matti

This is:

- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

(See the example project below)

The created file should handle numbers formatted as currencies correctly:

Screenshot 2023-05-19 at 18 08 52

What is the current behavior?

It doesn't display them correctly (at least) in Microsoft Excel for Mac 16.16.27:

Screenshot 2023-05-19 at 18 11 28

What are the steps to reproduce?

See: https://github.com/finn-matti/phpspreadsheet-problem for a minimal project.

What features do you think are causing the issue

- [ ] Reader
- [x] Writer
- [ ] Styles
- [ ] Data Validations
- [ ] Formula Calculations
- [ ] Charts
- [ ] AutoFilter
- [ ] Form Elements

Does an issue affect all spreadsheet file formats? If not, which formats are affected?

I have only tested it with xlsx.

Which versions of PhpSpreadsheet and PHP are affected?

1.28.0 and 1.24.1. I have not tested any other versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions