Issue #10291 has been updated by Adrien Thebo.
I did some investigating on this and Ruby, Python, and (unsurprisingly) C fail if nonbreaking spaces are used in actual source code. They can be specified in strings but nbsp cannot be used as actual whitespace and a number of common languages fail with parse errors when encountering `u00a0`. Considering that there are a number of other unicode whitespace characters (http://unicode-table.com/en/search/?q=non+breaking+space) it seems like trying to allow non-breaking spaces as whitespace would be the road to madness. ---------------------------------------- Bug #10291: Puppet manifests fail when UTF-8 non-breaking space (0xc2a0) is used as whitespace https://projects.puppetlabs.com/issues/10291#change-100078 * Author: Oliver Hookins * Status: Accepted * Priority: Normal * Assignee: Jeff McCune * Category: utf8 * Target version: * Affected Puppet version: 2.6.7 * Keywords: customer * Branch: ---------------------------------------- <code> err: Could not parse for environment production: Could not match Yum::Repo at /home/ohookins/svn/redacted/repo.pp:4 </code> The actual code is unremarkable, but the problem is here: <code> 00000020 20 7b 0a 20 c2 a0 59 75 6d 3a 3a 52 65 70 6f 20 | {. ..Yum::Repo | 00000030 7b 0a 20 c2 a0 c2 a0 c2 a0 6d 65 74 61 64 61 74 |{. ......metadat| </code> Somehow we've ended up with a UTF8 "nbsp" in our manifest (the 0xc2a0). Sure, I can just remove these characters but it suggests to me that perhaps the Unicode support in the parser is incomplete, which is a larger problem for internationalisation. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
