Bug #95190

Padding with Fluid ViewHelper format.padding does not work correctly with multibyte strings

Added by Sybille Peters about 1 month ago. Updated 12 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2021-09-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

As in #95189, str_pad() is used under the hood which is not equipped to handle multibyte characters.

Example / reproduce

<f:format.padding  padLength="8" padString="*">hellö</f:format.padding>

Expected result

hellö***

Actual result

hellö**

Versions

TYPO3 10.4 (latest)
TYPO3 master (11-dev)


Related issues

Related to TYPO3 Core - Bug #95189: Padding with TypoScript strPad does not work correctly with multibyte charactersResolved2021-09-11

Actions
Related to TYPO3 Core - Bug #95673: Omitting value in PaddingViewHelper throws TypeErrorResolved2021-10-16

Actions
#1

Updated by Sybille Peters about 1 month ago

  • Related to Bug #95189: Padding with TypoScript strPad does not work correctly with multibyte characters added
#2

Updated by Gerrit Code Review about 1 month ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

#3

Updated by Gerrit Code Review about 1 month ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

#4

Updated by Gerrit Code Review about 1 month ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

#5

Updated by Gerrit Code Review about 1 month ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

#6

Updated by Gerrit Code Review about 1 month ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

#7

Updated by Sybille Peters about 1 month ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#8

Updated by Benni Mack 19 days ago

  • Status changed from Resolved to Closed
#9

Updated by Gerrit Code Review 12 days ago

  • Status changed from Closed to Under Review

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71623

#10

Updated by Sybille Peters 12 days ago

  • Status changed from Under Review to Resolved
#11

Updated by Chris Müller 9 days ago

  • Related to Bug #95673: Omitting value in PaddingViewHelper throws TypeError added

Also available in: Atom PDF