Open sadleb opened 8 years ago
Good catch, I'll take a look
Ran into similar kind of issue (duplicate entry and as well as hash merge). For time being I am using the following fix: https://github.com/surki/i18nema/commit/e05b151cf4d687edd82d46a2e26101355f5586b4
Ran it under valgrind with all my locales (about 10 langs, with ~250K objects), seems to hold up okay.
My apologies, I haven't had time to look into this, and Instructure doesn't actually use this gem anymore in canvas. The GC improvements in newer versions of Ruby make i18nema's wins less significant. We can leave this open if someone wants to submit a pull request, but it's pretty unlikely that I (or someone at Instructure) will have time to fix this.
If I process a file with the following contents, it seg faults with the below exception. Notice the duplicate
medium_with_weekday
andlong_with_weekday
keys.Exception: