Comments (3)
The right solution is of course use Byte. but is there any easy way out? (say, compile option)
from camomile.
You could set OCAMLPARAM=safe-string=0,_
before building the modules to be fixed, but as you can tell it could only be a temporary fix, and an unclean one moreover.
The only real solution IMHO, if you want to stay compatible with OCaml < 4.02, is to use the bytes
compatibility library (from ocamlfind) and/or the Buffer
module when it is more appropriate.
from camomile.
Changing String to Buffer/Bytes is a daunting task. Mostly it requires just search/replace, but you have to check the correctness and sometimes API would need to be changed. We need a temporary but easy fix. I will take a look to how to set a OCAMLPARAM in the build procedure.
from camomile.
Related Issues (20)
- Update locale sensitive sorting algorithm (collation)
- Improve character encoding/decoding engine
- Remove/Rename deprecated functions HOT 1
- Stack overflow when building on ppc64, ppc64le HOT 5
- Use Uchar in stdlib
- Introduce quick check and use a modern unit test framework HOT 2
- Not_found exception thrown in Camomile/internal/database.ml HOT 7
- SEGV while processing zh locale HOT 2
- Reduce stack usage of ocamllocaldef HOT 6
- Proposal: Use topkg for releases. HOT 2
- v.1.0.0 opam CI test failure HOT 8
- 1.0.0 doesn't compile on macOS (OCaml 4.04.0) HOT 4
- Roadmap to 2.0.0 HOT 1
- tools/parse_specialcasing sometimes fails HOT 2
- Can`t install on OpenBSD HOT 4
- Camomile's config files are incompatible with js_of_ocaml
- Tests seem to fail in 1.0.2 HOT 2
- Does not compile with OCaml 4.09.0 HOT 4
- Does not compile with OCaml 5.0.0 switches in opam HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camomile.