Skip to content

(@aws-cdk/aws-events-targets module): Falsely detect change to Chinese text string #13634

@tamakisquare

Description

@tamakisquare

CDK CLI falsely detects a change to Chinese characters when there's no change at all.

The Chinese characters are passed into the constructor of Lambda function invoking event rule target as the event object.

Reproduction Steps

new Rule(this, 'MonthlyReminder', {
  enabled: true,
  schedule: Schedule.cron({ day: '1', hour: '0', minute: '0' }),
  targets: [
    new LambdaFunction(sendReminderFn, {
      event: RuleTargetInput.fromObject({ message: '今日五號,請交月報。' }),
    }),
  ],
});

What did you expect to happen?

CDK CLI should know there's no change.

What actually happened?

CDK CLI falsely recognizes there's a change to the Chinese text string. Somehow, CDK CLI shows the current version of the text as a series of question marks "????".
Screen Shot 2021-03-17 at 4 40 27 PM

Environment

  • CDK CLI Version : 1.93
  • Framework Version: 1.93
  • Node.js Version: 14.6
  • OS : MacOS 10.15.7
  • Language (Version): TypeScript (4.1.2)

Other


This is 🐛 Bug Report

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-events-targetsblockedWork is blocked on this issue for this codebase. Other labels or comments may indicate why.bugThis issue is a bug.effort/smallSmall work item – less than a day of effortneeds-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.needs-triageThis issue or PR still needs to be triaged.p1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions